Change color fields to non-repeated
This commit is contained in:
parent
5e8650e6ae
commit
b741821cc1
1 changed files with 23 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue