Exemplo n.º 1
0
 private void ProcessGetBrightness(MessageInfo message)
 {
     message.RespondWith(new FluentWriter()
                         .WriteEnum(Protocol.GetBrightness)
                         .WriteSingle(LedStripe.Brightness));
 }
Exemplo n.º 2
0
 private void ProcessSetOperationMode(MessageInfo message)
 {
     message.Reader.ReadEnum <OperationModeIdentifier>(out var newOpModeIdentifier);
     CurrentOpMode = IdentifierToOpMode[newOpModeIdentifier];
 }
Exemplo n.º 3
0
 private void ProcessSetBrightness(MessageInfo message)
 {
     message.Reader.ReadSingle(out float brightness);
     LedStripe.Brightness = brightness;
 }
Exemplo n.º 4
0
 private void ProcessOperationModeSpecific(MessageInfo message)
 {
     message.Reader.ReadEnum <OperationModeIdentifier>(out var targetOpMode);
     IdentifierToOpMode[targetOpMode].ProcessModeSpecificMessage(message);
 }