diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-02-20 11:10:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 11:10:20 -0500 |
commit | 7ff41df32c29bca4e3a6efc3047b8fa93bb99b92 (patch) | |
tree | 1f821ff584098a861ded7c72240ca8e0c8689bf8 /keyboards/xd60/xd60.h | |
parent | 49e72632d2200fc3bf71d5ced2aa43058da3b2e0 (diff) | |
parent | 76b1f392abb2a0cf4a7fa14a01818998f4de4d39 (diff) |
Merge pull request #1097 from stanleylai/master
Added support for LED backlight, XD60v2's RGB underglow LED
Diffstat (limited to 'keyboards/xd60/xd60.h')
-rw-r--r-- | keyboards/xd60/xd60.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/keyboards/xd60/xd60.h b/keyboards/xd60/xd60.h index 36442cb527..dd5f63c0ca 100644 --- a/keyboards/xd60/xd60.h +++ b/keyboards/xd60/xd60.h @@ -6,24 +6,18 @@ /* XD60 LEDs * GPIO pads - * 0 F7 WASD LEDs - * 1 F6 ESC LED - * 2 F5 FN LED - * 3 F4 POKER Arrow LEDs + * 0 F7 not connected + * 1 F6 RGB PWM Underglow + * 2 F5 Backlight LED + * 3 F4 not connected * B2 Capslock LED * B0 not connected */ inline void xd60_caps_led_on(void) { DDRB |= (1<<2); PORTB &= ~(1<<2); } -inline void xd60_poker_leds_on(void) { DDRF |= (1<<4); PORTF &= ~(1<<4); } -inline void xd60_fn_led_on(void) { DDRF |= (1<<5); PORTF &= ~(1<<5); } -inline void xd60_esc_led_on(void) { DDRF |= (1<<6); PORTF &= ~(1<<6); } -inline void xd60_wasd_leds_on(void) { DDRF |= (1<<7); PORTF &= ~(1<<7); } +inline void xd60_bl_led_on(void) { DDRF |= (1<<5); PORTF &= ~(1<<5); } inline void xd60_caps_led_off(void) { DDRB &= ~(1<<2); PORTB &= ~(1<<2); } -inline void xd60_poker_leds_off(void) { DDRF &= ~(1<<4); PORTF &= ~(1<<4); } -inline void xd60_fn_led_off(void) { DDRF &= ~(1<<5); PORTF &= ~(1<<5); } -inline void xd60_esc_led_off(void) { DDRF &= ~(1<<6); PORTF &= ~(1<<6); } -inline void xd60_wasd_leds_off(void) { DDRF &= ~(1<<7); PORTF &= ~(1<<7); } +inline void xd60_bl_led_off(void) { DDRF &= ~(1<<5); PORTF &= ~(1<<5); } /* XD60 Keymap Definition Macro */ #define KEYMAP( \ |