diff --git a/extra/fx.proto b/extra/fx.proto index 7404df5..21041c1 100644 --- a/extra/fx.proto +++ b/extra/fx.proto @@ -98,11 +98,18 @@ message RGBW { required uint32 w = 4; } +message MultiColor { + required fixed32 col1 = 1; + required fixed32 col2 = 2; + required fixed32 col3 = 3; +} + message ColorType { oneof colorTypes { RGB rgb = 1; RGBW rgbw = 2; fixed32 color = 3; + MultiColor multiColor = 4; } } @@ -159,7 +166,7 @@ message decreaseSpeed_msg { } message setColor_msg { optional uint32 segment = 1; - repeated ColorType color = 2; + required ColorType color = 2; } message setBrightness_msg { required uint32 brightness = 1; @@ -190,8 +197,9 @@ message setSegment_msg { required uint32 start = 2; required uint32 end = 3; required Mode mode = 4; - repeated ColorType color = 5; - required Options options = 6; + required ColorType color = 5; + required uint32 speed = 6; + required Options options = 7; } message resetSegments_msg { //(), @@ -211,10 +219,19 @@ message copyPixels_msg { required uint32 source = 2; required uint32 count = 3; } +message display_msg { + required uint32 offset = 1; + repeated fixed32 color = 2; +} message show_msg { //(void); } +message halt_msg { + //(void); +} + + // MAIN MESSAGE message Root { @@ -246,7 +263,9 @@ message Root { resetSegmentRuntime_msg resetSegmentRuntime = 25; setPixelColor_msg setPixelColor = 26; copyPixels_msg copyPixels = 27; - show_msg show = 28; + display_msg display = 28; + show_msg show = 29; + halt_msg halt = 30; } }