
Mbed touchscreed project. To be corrected
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Led_Lcd.cpp
- Revision:
- 7:982fb1421824
- Parent:
- 5:f51c47a67607
--- a/Led_Lcd.cpp Tue May 12 10:12:04 2020 +0000 +++ b/Led_Lcd.cpp Tue May 19 08:09:29 2020 +0000 @@ -2,23 +2,23 @@ char* pText[] = {"0", "1", "2", "3"}; -LedLcd::LedLcd(uint16_t columnNumber) { - ColumnX = columnNumber*80; +LedLcd::LedLcd(uint16_t uiColumnNumber) { + uiColumnX = uiColumnNumber*80; - BSP_LCD_SetFont(&Font24); + lcd.SetFont(&Font24); lcd.Clear(LCD_COLOR_BLACK); lcd.SetBackColor(LCD_COLOR_RED); } -void LedLcd::On(uint16_t chosenSquare) { +void LedLcd::On(uint16_t uiChosenSquare) { for(uint16_t i=0; i<4; i++) { lcd.SetTextColor(LCD_COLOR_GREEN); - lcd.DrawRect(ColumnX, i*80, 80, 80); + lcd.DrawRect(uiColumnX, i*80, 80, 80); //----------------------------------------------------------------- - if( chosenSquare != i) lcd.SetTextColor(LCD_COLOR_BLUE); - lcd.FillRect(ColumnX+1, (80*i)+1 , 78, 78); + if( uiChosenSquare != i) lcd.SetTextColor(LCD_COLOR_BLUE); + lcd.FillRect(uiColumnX+1, (80*i)+1 , 78, 78); //----------------------------------------------------------------- lcd.SetTextColor(LCD_COLOR_WHITE); - lcd.DisplayStringAt(ColumnX, i*80, (uint8_t *) pText[i], LEFT_MODE); + lcd.DisplayStringAt(uiColumnX, i*80, (uint8_t *)pText[i], LEFT_MODE); } }