
DigitalSignal_Lab
Dependencies: LCD_DISCO_F746NG BSP_DISCO_F746NG Graphics
Revision 8:b12196cca5dc, committed 2019-08-28
- Comitter:
- ngtkien
- Date:
- Wed Aug 28 16:57:08 2019 +0000
- Parent:
- 4:fae33fe59116
- Parent:
- 7:c8ddf2b6aaec
- Child:
- 9:9f5fe5cf9a9a
- Commit message:
- Commit cmm
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-os.lib | Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Aug 26 16:32:05 2019 +0000 +++ b/main.cpp Wed Aug 28 16:57:08 2019 +0000 @@ -30,11 +30,11 @@ graphics.SetActiveLayer(Foreground); - lcd.SetBackColor(LCD_COLOR_BLACK); - lcd.SetTextColor(LCD_COLOR_LIGHTGRAY); - lcd.DisplayStringAt(10, 10, (unsigned char*)"SignalProcess", CENTER_MODE); - - + graphics.SetBackColor(LCD_COLOR_BLACK); + graphics.SetTextColor(LCD_COLOR_LIGHTGRAY); + graphics.DisplayStringAt(10, 10, (unsigned char*)TITLE, CENTER_MODE); + graphics.DisplayStringAt(10, 70, (unsigned char*)TITLE, CENTER_MODE); + graphics.DisplayStringAt(10, 40, (unsigned char*)TITLE, CENTER_MODE); int xrand = 0,yrand = 0; uint32_t colorshift = LCD_COLOR_WHITE; @@ -42,7 +42,7 @@ while (true) { // Blink LED and wait 0.5 seconds led1 = !led1; - wait_ms(SLEEP_TIME); + thread_sleep_for(SLEEP_TIME); // xrand = 10 + std::rand()%470; // yrand = 10 + std::rand()%262;
--- a/mbed-os.lib Mon Aug 26 16:32:05 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118