diff options
author | zvecr <git@zvecr.com> | 2019-03-27 02:39:09 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-03-27 02:39:09 +0100 |
commit | 9ef21d2e1c26b4153368fb3fe887ea7117c5b49b (patch) | |
tree | 6fb7e565b65f6df97755aae4f58e000862280bdb /keyboards/staryu/backlight_staryu.c | |
parent | a0270b55e1e5326ff097644ffe617574f2311d61 (diff) | |
download | qmk_firmware-9ef21d2e1c26b4153368fb3fe887ea7117c5b49b.tar.gz qmk_firmware-9ef21d2e1c26b4153368fb3fe887ea7117c5b49b.tar.xz |
Refactor staryu to current standards and enable support for backlight keycodes (#5487)
Diffstat (limited to 'keyboards/staryu/backlight_staryu.c')
-rw-r--r-- | keyboards/staryu/backlight_staryu.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/keyboards/staryu/backlight_staryu.c b/keyboards/staryu/backlight_staryu.c deleted file mode 100644 index 6fb9713f3..000000000 --- a/keyboards/staryu/backlight_staryu.c +++ /dev/null @@ -1,52 +0,0 @@ -#include "backlight.h" -#include <avr/pgmspace.h> - -/* backlighting */ -void init_backlight_led(void) -{ - DDRC |= (1<<PC2 | 1<<PC7); - DDRD |= (1<<PD5 | 1<<PD6); - DDRB |= (1<<PB0); -} - -void backlight_led_off(uint8_t index) -{ - switch (index) { - case 0: - PORTC |= (1<<PC2); - break; - case 1: - PORTC |= (1<<PC7); - break; - case 2: - PORTD |= (1<<PD5); - break; - case 3: - PORTD |= (1<<PD6); - break; - case 4: - PORTB |= (1<<PB0); - break; - } -} - -void backlight_led_on(uint8_t index) -{ - switch (index) { - case 0: - PORTC &= ~(1<<PC2); - break; - case 1: - PORTC &= ~(1<<PC7); - break; - case 2: - PORTD &= ~(1<<PD5); - break; - case 3: - PORTD &= ~(1<<PD6); - break; - case 4: - PORTB &= ~(1<<PB0); - break; - } -} |