summaryrefslogtreecommitdiff
path: root/keyboards/annepro2/ap2_led.h
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-06-10 03:26:21 +0000
committerQMK Bot <hello@qmk.fm>2022-06-10 03:26:21 +0000
commited15a579a720c03c614e4371b0b76204ae0f5662 (patch)
treede38a4edbccd8e021ef03a57fd6691bb9d7e15ce /keyboards/annepro2/ap2_led.h
parentc84d058c8b265d23d793cbf0044b2cdd0ae0bc0b (diff)
parent9da1b86d71204ff0a1867730faf97cc88da28baf (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/annepro2/ap2_led.h')
-rw-r--r--keyboards/annepro2/ap2_led.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/keyboards/annepro2/ap2_led.h b/keyboards/annepro2/ap2_led.h
index b68589d204..43f78c03e3 100644
--- a/keyboards/annepro2/ap2_led.h
+++ b/keyboards/annepro2/ap2_led.h
@@ -40,6 +40,7 @@ typedef union {
/* Local copy of led_mask, used to override colors on the board */
extern ap2_led_t led_mask[KEY_COUNT];
+extern ap2_led_t led_colors[KEY_COUNT];
extern uint8_t rgb_row_changed[NUM_ROW];
/* Handle incoming messages */
@@ -66,6 +67,18 @@ void ap2_led_mask_set_all(void);
/* Set all keys to a given color */
void ap2_led_mask_set_mono(ap2_led_t color);
+/* Set single key to a given color; alpha controls which is displayed */
+void ap2_led_colors_set_key(uint8_t row, uint8_t col, ap2_led_t color);
+/* Push a whole local row to the shine */
+void ap2_led_colors_set_row(uint8_t row);
+/* Synchronize all rows */
+void ap2_led_colors_set_all(void);
+
+/* Set all keys to a given color */
+void ap2_led_colors_set_mono(ap2_led_t color);
+
+void ap2_led_set_manual_control(uint8_t manual);
+
/* Blink given key `count` times by masking it with a `color`. Blink takes `hundredths` of a second */
void ap2_led_blink(uint8_t row, uint8_t col, ap2_led_t color, uint8_t count, uint8_t hundredths);