Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Revision 2:3a2602b8d89b, committed 2020-06-08
- Comitter:
- wkierepka
- Date:
- Mon Jun 08 22:19:29 2020 +0000
- Parent:
- 1:c908cfb5fbde
- Commit message:
- MBEDCZ1
Changed in this revision
Led_Lcd.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r c908cfb5fbde -r 3a2602b8d89b Led_Lcd.cpp --- a/Led_Lcd.cpp Mon Jun 01 16:24:15 2020 +0000 +++ b/Led_Lcd.cpp Mon Jun 08 22:19:29 2020 +0000 @@ -14,7 +14,7 @@ lcd.DrawRect(ucColumnPosition, (80*ucRectangleIndex), 80, 80); lcd.SetTextColor(LCD_COLOR_BLUE); lcd.FillRect(ucColumnPosition + 2, 2+80*ucRectangleIndex, 78, 78); - lcd.SetTextColor(LCD_COLOR_YELLOW); + lcd.SetTextColor(LCD_COLOR_RED); } if (ucLed <4){ lcd.FillRect(ucColumnPosition + 2, ucLed*80+2, 78, 78); @@ -22,7 +22,7 @@ lcd.SetBackColor(LCD_COLOR_RED); lcd.SetTextColor(LCD_COLOR_WHITE); lcd.SetFont(&Font24); - char RectNumber [1]; + char RectNumber [2]; for (ucRectangleIndex = 0 ; ucRectangleIndex < 4; ucRectangleIndex ++){ sprintf(RectNumber, "%d", ucRectangleIndex ); lcd.DisplayStringAt(ucColumnPosition, 80*ucRectangleIndex , (uint8_t *)&RectNumber, LEFT_MODE);