diff options
author | Nick Brassel <[email protected]> | 2023-11-28 16:39:48 +1100 |
---|---|---|
committer | Nick Brassel <[email protected]> | 2023-11-28 16:40:47 +1100 |
commit | 0115951de12bd4c798a43a380651c34552552e85 (patch) | |
tree | 62999011ae782d93aa6dc9c889615db2a840cafc /users/zer09/lights.h | |
parent | 0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff) | |
parent | 4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff) | |
download | qmk_firmware-0.23.0.tar.gz qmk_firmware-0.23.0.zip |
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'users/zer09/lights.h')
-rw-r--r-- | users/zer09/lights.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/users/zer09/lights.h b/users/zer09/lights.h deleted file mode 100644 index f1bd7245d5..0000000000 --- a/users/zer09/lights.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef LIGHTS_H -#define LIGHTS_H - -#include "eeprom.h" -#include "tap_dance.h" -#include "zer09.h" - -/* Will hold the RGB brightness level */ -#define EECONFIG_LED_DIM_LVL (uint8_t *)15 - -#define SET_LED_RGB(r, g, b, led_dim, pos) \ - setrgb(r >> led_dim, g >> led_dim, b >> led_dim, (LED_TYPE *)&led[pos]) - -typedef enum { - DEFAULT, - ENABLED, - DISABLED, -} led_status; - -typedef struct { - led_status status; - uint8_t pos; - bool forced; -} led_key; - -enum rbw_keys { - RBW_LCTL, - RBW_LCAP, - RBW_LSPR, - RBW_RCTL, - RBW_RCAP, - RBW_RALT, - RBW_SCRL, - RBW -}; - -extern volatile led_key rbw_led_keys[RBW]; - -void set_key_led(keyrecord_t *record, uint8_t lyr); -bool set_layer_led(uint8_t lyr); -bool rainbow_loop(uint8_t lyr); -bool led_brightness(uint16_t keycode, keyrecord_t *record); -void eeprom_read_led_dim_lvl(void); - -#endif |