
DigitalSignal_Lab
Dependencies: LCD_DISCO_F746NG BSP_DISCO_F746NG Graphics
Diff: main.cpp
- Revision:
- 4:fae33fe59116
- Parent:
- 3:297f513b26fe
- Child:
- 8:b12196cca5dc
--- a/main.cpp Mon Aug 26 22:24:04 2019 +0700 +++ b/main.cpp Mon Aug 26 16:32:05 2019 +0000 @@ -30,9 +30,9 @@ graphics.SetActiveLayer(Foreground); - graphics.SetBackColor(LCD_COLOR_BLACK); - graphics.SetTextColor(LCD_COLOR_LIGHTGRAY); - graphics.DisplayStringAt(10, 10, (unsigned char*)TITLE, CENTER_MODE); + lcd.SetBackColor(LCD_COLOR_BLACK); + lcd.SetTextColor(LCD_COLOR_LIGHTGRAY); + lcd.DisplayStringAt(10, 10, (unsigned char*)"SignalProcess", CENTER_MODE); @@ -42,7 +42,7 @@ while (true) { // Blink LED and wait 0.5 seconds led1 = !led1; - thread_sleep_for(SLEEP_TIME); + wait_ms(SLEEP_TIME); // xrand = 10 + std::rand()%470; // yrand = 10 + std::rand()%262;