diff --git a/client.proto b/client.proto index b15e1f5..8097079 100644 --- a/client.proto +++ b/client.proto @@ -4,7 +4,7 @@ package ledd; option optimize_for = SPEED; -import "hcl.proto"; +import "rgb.proto"; import "led.proto"; import "backend.proto"; @@ -24,7 +24,7 @@ message RemoveLED { } message SetLED { - HCL colour = 2; + RGB colour = 2; } message GetLED { diff --git a/hcl.proto b/hcl.proto deleted file mode 100644 index 72d1238..0000000 --- a/hcl.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - -package ledd; - -option optimize_for = SPEED; - -message HCL { - double hue = 1; - double chroma = 2; - double light = 3; -} \ No newline at end of file diff --git a/led.proto b/led.proto index d5e3dc0..12eef0f 100644 --- a/led.proto +++ b/led.proto @@ -4,9 +4,9 @@ package ledd; option optimize_for = SPEED; -import "hcl.proto"; +import "rgb.proto"; message LED { string name = 1; - HCL color = 2; + RGB color = 2; } \ No newline at end of file diff --git a/rgb.proto b/rgb.proto new file mode 100644 index 0000000..e3a0448 --- /dev/null +++ b/rgb.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +package ledd; + +option optimize_for = SPEED; + +message RGB { + double red = 4; + double green = 5; + double blue = 6; +} \ No newline at end of file