#include <avr/pgmspace.h> | #include <avr/pgmspace.h> | ||||
#include "backlight.h" | #include "backlight.h" | ||||
#include "softpwm_led.h" | #include "softpwm_led.h" | ||||
#include "keymap_common.h" | |||||
#include "action.h" | |||||
#ifdef BACKLIGHT_ENABLE | #ifdef BACKLIGHT_ENABLE | ||||
} | } | ||||
#endif | #endif | ||||
void action_keyevent(keyevent_t event) | |||||
{ | |||||
if (backlight_mode == 7) { | |||||
if (event.pressed) { | |||||
softpwm_led_decrease_all(32); | |||||
} | |||||
} | |||||
if (backlight_mode == 8) { | |||||
if (event.pressed) { | |||||
softpwm_led_increase_all(32); | |||||
} | |||||
} | |||||
} | |||||
#endif | #endif |