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