Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: main.cpp
- Revision:
- 6:3470127df0ab
- Parent:
- 5:49f24d9bfae9
- Child:
- 7:17a87b6d8516
--- a/main.cpp Wed Mar 10 15:45:20 2021 +0000
+++ b/main.cpp Thu Mar 11 06:42:35 2021 +0000
@@ -14,9 +14,11 @@
BSP_LCD_SetFont(&Font20);
- lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"TOUCHSCREEN", CENTER_MODE);
- lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"DEMO", CENTER_MODE);
- ThisThread::sleep_for(1s);
+ lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"EXTREMELY", CENTER_MODE);
+ lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"COOL", CENTER_MODE);
+ lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"EMPA", CENTER_MODE);
+ lcd.DisplayStringAt(0, LINE(8), (uint8_t *)"TRAINING", CENTER_MODE);
+ ThisThread::sleep_for(1500);
status = ts.Init(lcd.GetXSize(), lcd.GetYSize());
@@ -27,6 +29,7 @@
lcd.SetTextColor(LCD_COLOR_WHITE);
lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"TOUCHSCREEN", CENTER_MODE);
lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"INIT FAIL", CENTER_MODE);
+ lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"WTF DID YOU DO?!", CENTER_MODE);
}
else
{
@@ -35,13 +38,15 @@
lcd.SetTextColor(LCD_COLOR_WHITE);
lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"TOUCHSCREEN", CENTER_MODE);
lcd.DisplayStringAt(0, LINE(6), (uint8_t *)"INIT OK", CENTER_MODE);
+ lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"(YOU WERE LUCKY!)", CENTER_MODE);
}
- ThisThread::sleep_for(1s);
+ ThisThread::sleep_for(1000);
lcd.Clear(LCD_COLOR_BLUE);
lcd.SetBackColor(LCD_COLOR_BLUE);
lcd.SetTextColor(LCD_COLOR_WHITE);
+ //this loops forever and ever and ever ... :-O
while(1)
{