diff options
author | Drashna Jael're <drashna@live.com> | 2019-08-04 09:33:44 -0700 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-08-05 09:36:54 +0900 |
commit | 927969d6cb09daa969faebec69998186b883c140 (patch) | |
tree | 0b2cf2ea85bbc4ae7a3e9b1ebc107f5b9ca63614 /keyboards/ergodox_ez/ergodox_ez.h | |
parent | d2100ba45d0c0bf5258dcab2f503aa350f423120 (diff) |
Enable LED Light level control for Ergodox EZ
Diffstat (limited to 'keyboards/ergodox_ez/ergodox_ez.h')
-rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.h b/keyboards/ergodox_ez/ergodox_ez.h index 383702b957..38377fdf87 100644 --- a/keyboards/ergodox_ez/ergodox_ez.h +++ b/keyboards/ergodox_ez/ergodox_ez.h @@ -107,6 +107,20 @@ inline void ergodox_led_all_set(uint8_t n) ergodox_right_led_3_set(n); } +enum ergodox_ez_keycodes { + LED_LEVEL = SAFE_RANGE, + EZ_SAFE_RANGE, +}; + +typedef union { + uint32_t raw; + struct { + uint8_t led_level :3; + }; +} keyboard_config_t; + +extern keyboard_config_t keyboard_config; + /* * LEFT HAND: LINES 115-122 * RIGHT HAND: LINES 124-131 |