Change color fields to non-repeated

This commit is contained in:
Patrick Moessler 2019-10-16 22:47:36 +02:00
parent 5e8650e6ae
commit b741821cc1

View file

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