Example #1
0
 public void SetLedColor(int index, RGB color)
 {
     Connection.Send(MessageBuilder.SetLedColor(index.ToByte(), color));
 }
Example #2
0
 public ButtonDeckCommunication(ILogger logger)
 {
     _logger        = logger;
     MessageHandler = new MessageHandler(logger);
     MessageBuilder = new MessageBuilder(logger);
 }
Example #3
0
 public void Heartbeat(int number)
 {
     Connection.Send(MessageBuilder.Heartbeat(number.ToByte()));
 }
Example #4
0
 public void RequestVersion()
 {
     Connection.Send(MessageBuilder.GetVersion());
 }
Example #5
0
 public void SetLedBrightness(int brightness)
 {
     Connection.Send(MessageBuilder.SetLedBrightness(brightness.ToByte()));
 }
Example #6
0
 public void RequestLedBrightness()
 {
     Connection.Send(MessageBuilder.GetLedBrightness());
 }
Example #7
0
 public void RequestToggleState(int toggleIndex)
 {
     Connection.Send(MessageBuilder.GetToggleState(toggleIndex.ToByte()));
 }