summaryrefslogtreecommitdiff
path: root/app/include/dt-bindings/zmk
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2021-01-20 10:57:03 -0500
committerPete Johanson <peter@peterjohanson.com>2021-02-09 01:27:50 -0500
commitbb2c478af915616640d78ae9ba984fbf1f817185 (patch)
treec4a0192b9df440f0413544aa7b6e80f81cf01885 /app/include/dt-bindings/zmk
parent24ed1a8eaa013aa729f394554991507e95f3f99d (diff)
refactor(rgb): Expose explicit on/off command/API.
Diffstat (limited to 'app/include/dt-bindings/zmk')
-rw-r--r--app/include/dt-bindings/zmk/rgb.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/app/include/dt-bindings/zmk/rgb.h b/app/include/dt-bindings/zmk/rgb.h
index 1f7b44e..403cba9 100644
--- a/app/include/dt-bindings/zmk/rgb.h
+++ b/app/include/dt-bindings/zmk/rgb.h
@@ -5,19 +5,23 @@
*/
#define RGB_TOG_CMD 0
-#define RGB_HUI_CMD 1
-#define RGB_HUD_CMD 2
-#define RGB_SAI_CMD 3
-#define RGB_SAD_CMD 4
-#define RGB_BRI_CMD 5
-#define RGB_BRD_CMD 6
-#define RGB_SPI_CMD 7
-#define RGB_SPD_CMD 8
-#define RGB_EFF_CMD 9
-#define RGB_EFR_CMD 10
-#define RGB_COLOR_HSB_CMD 11
+#define RGB_ON_CMD 1
+#define RGB_OFF_CMD 2
+#define RGB_HUI_CMD 3
+#define RGB_HUD_CMD 4
+#define RGB_SAI_CMD 5
+#define RGB_SAD_CMD 6
+#define RGB_BRI_CMD 7
+#define RGB_BRD_CMD 8
+#define RGB_SPI_CMD 9
+#define RGB_SPD_CMD 10
+#define RGB_EFF_CMD 11
+#define RGB_EFR_CMD 12
+#define RGB_COLOR_HSB_CMD 13
#define RGB_TOG RGB_TOG_CMD 0
+#define RGB_ON RGB_ON_CMD 0
+#define RGB_OFF RGB_OFF_CMD 0
#define RGB_HUI RGB_HUI_CMD 0
#define RGB_HUD RGB_HUD_CMD 0
#define RGB_SAI RGB_SAI_CMD 0