diff options
author | tmk <tmk@users.noreply.github.com> | 2014-08-26 04:59:43 +0900 |
---|---|---|
committer | tmk <tmk@users.noreply.github.com> | 2014-08-26 04:59:43 +0900 |
commit | 10eb70acb4c8a03fc5bda32d9c23fc41266aef7a (patch) | |
tree | 635e533dfce7b8193872013831b1d62088748d62 /keyboard/lightpad/backlight.h | |
parent | 523cc6aa2ed0879c2d297e7060de2962987c8c7a (diff) | |
parent | af19f56ec98d27ab939b024effefcbebbab8f125 (diff) |
Merge pull request #134 from xauser/master
Support for Lightpad keypad
Diffstat (limited to 'keyboard/lightpad/backlight.h')
-rw-r--r-- | keyboard/lightpad/backlight.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/keyboard/lightpad/backlight.h b/keyboard/lightpad/backlight.h new file mode 100644 index 0000000000..3b3cfd9aea --- /dev/null +++ b/keyboard/lightpad/backlight.h @@ -0,0 +1,39 @@ + +enum backlight_level { + BACKLIGHT_FN1 = 0b0000001, + BACKLIGHT_FN2 = 0b0000010, + BACKLIGHT_FN3 = 0b0000100, + BACKLIGHT_FN4 = 0b0001000, + BACKLIGHT_NUMPAD = 0b0010000, + BACKLIGHT_REAR = 0b0100000, +}; + +void backlight_init_ports(void); + +void backlight_invert_fn1(void); +void backlight_enable_fn1(void); +void backlight_disable_fn1(void); + +void backlight_invert_fn2(void); +void backlight_enable_fn2(void); +void backlight_disable_fn2(void); + +void backlight_invert_fn3(void); +void backlight_enable_fn3(void); +void backlight_disable_fn3(void); + +void backlight_invert_fn4(void); +void backlight_enable_fn4(void); +void backlight_disable_fn4(void); + +void backlight_invert_numlock(void); +void backlight_enable_numlock(void); +void backlight_disable_numlock(void); + +void backlight_enable_numpad(void); +void backlight_disable_numpad(void); +void backlight_invert_numpad(void); + +void backlight_enable_rear(void); +void backlight_disable_rear(void); +void backlight_invert_rear(void); |