1
0

Change backlight_level to backlight_xor

This commit is contained in:
Kai Ryu 2014-08-03 11:36:41 +09:00
parent 8b070f0f54
commit 89bdc9fb72
2 changed files with 9 additions and 0 deletions

View File

@ -106,6 +106,14 @@ void backlight_step(void)
}
void backlight_level(uint8_t level)
{
backlight_config.level = level;
backlight_config.enable = !!backlight_config.level;
eeconfig_write_backlight(backlight_config.raw);
backlight_set(backlight_config.level);
}
void backlight_xor(uint8_t level)
{
backlight_config.level ^= level;
backlight_config.enable = !!backlight_config.level;

View File

@ -36,5 +36,6 @@ void backlight_toggle(void);
void backlight_step(void);
void backlight_set(uint8_t level);
void backlight_level(uint8_t level);
void backlight_xor(uint8_t level);
#endif