Example #1
0
 public ModernFanController(HidDevice hidDevice, byte channel)
 {
     reportFactory = new CoolitModernOutputReportFactory(hidDevice)
     {
         Channel = channel
     };
     cmd = new CommandStateMachine(hidDevice, reportFactory, new CoolitBridgeResponseValidator());
 }
Example #2
0
 public CoolitDevice(HidDevice hidDevice, byte channel = 0)
 {
     deviceEntity        = hidDevice;
     Channel             = channel;
     bridgeReportFactory = new CoolitBridgeOutputReportFactory(deviceEntity)
     {
         Channel = channel
     };
     modernReportFactory = new CoolitModernOutputReportFactory(deviceEntity)
     {
         Channel = channel
     };
 }