Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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