Bsongis/gui refactoring for x7 d (#3701)

* [X7D] New board added
* Cosmetics
This commit is contained in:
Bertrand Songis
2016-08-18 11:49:16 +02:00
committed by GitHub
parent 282b856309
commit d3ae3c035d
233 changed files with 7472 additions and 4560 deletions
+6 -5
View File
@@ -318,9 +318,9 @@ void LCD_LayerInit()
LTDC_DitherCmd(ENABLE);
}
void LCD_ControlLight(uint16_t dutyCycle)
void backlightEnable(uint8_t dutyCycle)
{
static uint16_t existingDutyCycle;
static uint8_t existingDutyCycle;
if (dutyCycle == existingDutyCycle || dutyCycle < 5) {
return;
@@ -374,11 +374,12 @@ void LCD_Init(void)
LCD_Init_LTDC();
//config backlight
// TODO split backlight from LCD
// Config backlight
LCD_Backlight_Config();
//Max Value
LCD_ControlLight(100);
// Max Value
backlightEnable(100);
}
BitmapBuffer lcdBuffer1(BMP_RGB565, LCD_W, LCD_H, (uint16_t *)LCD_FIRST_FRAME_BUFFER);