aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ymd75/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ymd75/backlight.c')
-rw-r--r--keyboards/ymd75/backlight.c5
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 @@
// Port D: digital pins of the AVR chipset
//#define NUMLOCK_PORT (1 << 2) // 2nd pin of Port D (digital)
#define CAPSLOCK_PORT (1 << 1) // 1st pin
-#define BACKLIGHT_PORT (1 << 4) // 4th pin
-//#define SCROLLLOCK_PORT (1 << 6) // 6th pin
+#define BACKLIGHT_PORT (1 << 4) // D4
+//#define SCROLLLOCK_PORT (1 << 6) // D6
#define TIMER_CLK_DIV64 0x03 ///< Timer clocked at F_CPU/64
#define TIMER1PRESCALE TIMER_CLK_DIV64 ///< timer 1 prescaler default
@@ -44,6 +44,7 @@ extern backlight_config_t backlight_config;
// @Override
// turn LEDs on and off depending on USB caps/num/scroll lock states.
+__attribute__ ((weak))
void led_set_user(uint8_t usb_led) {
/*
if (usb_led & (1 << USB_LED_NUM_LOCK)) {