Skip to content

Instantly share code, notes, and snippets.

@th0ma5w
Created December 3, 2017 21:25
Show Gist options
  • Save th0ma5w/bf890ad1f471a32ac750a02316dc5745 to your computer and use it in GitHub Desktop.
Save th0ma5w/bf890ad1f471a32ac750a02316dc5745 to your computer and use it in GitHub Desktop.
A protobuf for describing LED strip control messages
syntax = "proto2";
message led {
required uint32 led = 1;
required uint32 red = 2;
required uint32 green = 3;
required uint32 blue = 4;
required uint32 intensity = 5;
}
message xmas_lights {
repeated led leds = 1;
}
message xmas_lights_delay {
required uint32 delay = 1;
required xmas_lights scene = 2;
}
message xmas_lights_sequence {
repeated xmas_lights_delay sequences = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment