#include #include "ledmap.h" #include "debug.h" #ifdef LEDMAP_ENABLE static const uint8_t ledmaps[LED_COUNT] PROGMEM = { [0] = LEDMAP_NUM_LOCK | LEDMAP_BACKLIGHT, // LEDS1 - PB2 [1] = LEDMAP_BACKLIGHT, // LEDS6 - PF7 [2] = LEDMAP_BACKLIGHT, // LEDS11 - PF6 [3] = LEDMAP_BACKLIGHT, // LEDS16 - PF5 [4] = LEDMAP_BACKLIGHT, // PWM - PB5 }; uint8_t ledmap_get_code(uint8_t index) { return pgm_read_byte(&ledmaps[index]); } void ledmap_led_init(void) { DDRB |= (1<