From 9a2fd0ad06763d65f3cf685f206de8659b7c7096 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 3 May 2019 03:01:24 +0200 Subject: [PATCH] changed from HCL to RGB --- client.proto | 4 ++-- hcl.proto | 11 ----------- led.proto | 4 ++-- rgb.proto | 11 +++++++++++ 4 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 hcl.proto create mode 100644 rgb.proto 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