This commit is contained in:
bsongis
2014-08-27 23:15:34 +02:00
parent 0bfb1da97f
commit 784ec0f05a
3 changed files with 5 additions and 8 deletions
+2 -5
View File
@@ -338,11 +338,8 @@ void lcdSetRefVolt(uint8_t val)
#if defined(REVPLUS)
void turnBacklightOn(uint8_t level, uint8_t color)
{
if (color >= 9 && color <= 17) {
color += 83;
}
TIM4->CCR4 = (100-level)*color;
TIM4->CCR2 = (100-level)*(100-color);
TIM4->CCR4 = ((100-level)*(20-color))/20;
TIM4->CCR2 = ((100-level)*color)/20;
}
void turnBacklightOff(void)