X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboard%2Fhhkb_rn42%2Frn42%2Frn42_task.c;h=fd5a814b294fc459679a3cb96f63022fe2e4992e;hb=ae28b16fc630cc8219676f1bfb9cee41f0b36a79;hp=7ec4c1b540cbeb0fa11813c1547670c1f4abafbb;hpb=59ea5e02f76a37e5021c5f9d02af149e48e7c07c;p=tmk_firmware.git diff --git a/keyboard/hhkb_rn42/rn42/rn42_task.c b/keyboard/hhkb_rn42/rn42/rn42_task.c index 7ec4c1b..fd5a814 100644 --- a/keyboard/hhkb_rn42/rn42/rn42_task.c +++ b/keyboard/hhkb_rn42/rn42/rn42_task.c @@ -13,6 +13,17 @@ static bool config_mode = false; static bool force_usb = false; +static void status_led(bool on) +{ + if (on) { + DDRE |= (1<<6); + PORTE &= ~(1<<6); + } else { + DDRE |= (1<<6); + PORTE |= (1<<6); + } +} + static void battery_adc_init(void) { ADMUX = (1<