diff --git a/proto/cls_device.proto b/proto/cls_device.proto index 68c46c0..f0a67d0 100644 --- a/proto/cls_device.proto +++ b/proto/cls_device.proto @@ -12,6 +12,7 @@ message RequestDeviceList { required uint32 canid = 2; required uint32 device = 3; required uint32 counter = 4; + optional uint32 type = 5; } message ResponseDeviceList { diff --git a/proto/light.proto b/proto/light.proto index 5dd6872..6748cda 100644 --- a/proto/light.proto +++ b/proto/light.proto @@ -2,3 +2,25 @@ syntax = "proto2"; import "nanopb.proto"; +message LightGlobalBrightness { + required uint32 brightness = 1; +} + +enum LightTheme { + THEME_0 = 0; + THEME_1 = 1; + THEME_2 = 2; + THEME_3 = 3; +} + +message LightGlobalTheme { + required LightTheme theme = 1; +} + +message LightThemeSettings { + required uint32 deviceId = 1; + required LightTheme theme = 2; + required uint32 rgb = 3; + required uint32 brightness = 4; + required uint32 animation = 5; +} \ No newline at end of file diff --git a/proto/usb.proto b/proto/usb.proto index 2a7953e..d6e2d64 100644 --- a/proto/usb.proto +++ b/proto/usb.proto @@ -11,7 +11,13 @@ enum UsbPackageType { FIRMWAREPACKAGEACK = 3844; // 0xF04 FIRMWAREFILECHECK = 3845; // 0xF05 FIRMWAREUPDATEDONE = 3846; // 0xF06 + REQUEST_DEVICE_LIST = 1000; RESPONSE_DEVICE_LIST = 1001; + + LIGHT_GLOBAL_BRIGHT = 2001; + LIGHT_GLOBAL_THEME = 2002; + + LIGHT_SETTING_THEME = 2101; } \ No newline at end of file