Backlight driver, totally untested. Backlight SF color not handled yet.

This commit is contained in:
Andre Bernet
2014-04-29 18:34:11 +02:00
parent 7ca42a8472
commit 3a7f122323
4 changed files with 49 additions and 8 deletions
@@ -171,4 +171,16 @@ void boardInit()
}
#endif
#if defined(REVPLUS)
void turnBacklightOn(uint8_t level, uint8_t color)
{
TIM4->CCR4 = (100-level)*color;
TIM4->CCR2 = (100-level)*(100-color);
}
void turnBacklightOff(void)
{
TIM4->CCR4 = 0;
TIM4->CCR2 = 0;
}
#endif