diff options
Diffstat (limited to 'keyboards/ymd75/backlight.c')
-rw-r--r-- | keyboards/ymd75/backlight.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/ymd75/backlight.c b/keyboards/ymd75/backlight.c index 1f5e19638..cb0a97923 100644 --- a/keyboards/ymd75/backlight.c +++ b/keyboards/ymd75/backlight.c | |||
@@ -20,8 +20,8 @@ | |||
20 | // Port D: digital pins of the AVR chipset | 20 | // Port D: digital pins of the AVR chipset |
21 | //#define NUMLOCK_PORT (1 << 2) // 2nd pin of Port D (digital) | 21 | //#define NUMLOCK_PORT (1 << 2) // 2nd pin of Port D (digital) |
22 | #define CAPSLOCK_PORT (1 << 1) // 1st pin | 22 | #define CAPSLOCK_PORT (1 << 1) // 1st pin |
23 | #define BACKLIGHT_PORT (1 << 4) // 4th pin | 23 | #define BACKLIGHT_PORT (1 << 4) // D4 |
24 | //#define SCROLLLOCK_PORT (1 << 6) // 6th pin | 24 | //#define SCROLLLOCK_PORT (1 << 6) // D6 |
25 | 25 | ||
26 | #define TIMER_CLK_DIV64 0x03 ///< Timer clocked at F_CPU/64 | 26 | #define TIMER_CLK_DIV64 0x03 ///< Timer clocked at F_CPU/64 |
27 | #define TIMER1PRESCALE TIMER_CLK_DIV64 ///< timer 1 prescaler default | 27 | #define TIMER1PRESCALE TIMER_CLK_DIV64 ///< timer 1 prescaler default |
@@ -44,6 +44,7 @@ extern backlight_config_t backlight_config; | |||
44 | 44 | ||
45 | // @Override | 45 | // @Override |
46 | // turn LEDs on and off depending on USB caps/num/scroll lock states. | 46 | // turn LEDs on and off depending on USB caps/num/scroll lock states. |
47 | __attribute__ ((weak)) | ||
47 | void led_set_user(uint8_t usb_led) { | 48 | void led_set_user(uint8_t usb_led) { |
48 | /* | 49 | /* |
49 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | 50 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { |