diff options
Diffstat (limited to 'keyboards/org60/org60.h')
-rw-r--r-- | keyboards/org60/org60.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/keyboards/org60/org60.h b/keyboards/org60/org60.h index 49687c8716..1fa92dceb2 100644 --- a/keyboards/org60/org60.h +++ b/keyboards/org60/org60.h @@ -3,6 +3,9 @@ #include "quantum.h" #include "led.h" +#define ORG60_CAPS_LOCK_LED_PIN B2 +#define ORG60_BACKLIGHT_PIN F5 + /* Org60 LEDs * GPIO pads * 0 F7 not connected @@ -12,8 +15,18 @@ * B2 Capslock LED * B0 not connected */ -inline void org60_caps_led_on(void) { DDRB |= (1<<2); PORTB &= ~(1<<2); } -inline void org60_bl_led_on(void) { DDRF |= (1<<5); PORTF &= ~(1<<5); } +inline void org60_caps_led_on(void) { + gpio_set_pin_output(ORG60_CAPS_LOCK_LED_PIN); + gpio_write_pin_low(ORG60_CAPS_LOCK_LED_PIN); +} +inline void org60_bl_led_on(void) { + gpio_set_pin_output(ORG60_BACKLIGHT_PIN); + gpio_write_pin_low(ORG60_BACKLIGHT_PIN); +} -inline void org60_caps_led_off(void) { DDRB &= ~(1<<2); PORTB &= ~(1<<2); } -inline void org60_bl_led_off(void) { DDRF &= ~(1<<5); PORTF &= ~(1<<5); } +inline void org60_caps_led_off(void) { + gpio_set_pin_input(ORG60_CAPS_LOCK_LED_PIN); +} +inline void org60_bl_led_off(void) { + gpio_set_pin_input(ORG60_BACKLIGHT_PIN); +} |