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: BSP_DISCO_L496AG
Diff: main.cpp
- Revision:
- 4:6831ef31324d
- Parent:
- 3:ff6ab501ecb0
diff -r ff6ab501ecb0 -r 6831ef31324d main.cpp
--- a/main.cpp Mon Mar 26 14:34:09 2018 +0200
+++ b/main.cpp Wed Nov 20 16:59:36 2019 +0100
@@ -3,6 +3,8 @@
int main()
{
+ printf("\nSTART DISCO L496AG LCD EXAMPLE\n");
+
BSP_LCD_Init();
while(1) {
@@ -13,7 +15,8 @@
BSP_LCD_DisplayStringAt(0, LINE(4), (uint8_t *)"DISCO_L496AG", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"LCD DEMO", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(6), (uint8_t *)"FONT12", CENTER_MODE);
- wait(2);
+ ThisThread::sleep_for(2000);
+
BSP_LCD_SetFont(&Font16);
BSP_LCD_Clear(LCD_COLOR_RED);
BSP_LCD_SetBackColor(LCD_COLOR_RED);
@@ -21,7 +24,8 @@
BSP_LCD_DisplayStringAt(0, LINE(4), (uint8_t *)"DISCO_L496AG", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"LCD DEMO", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(6), (uint8_t *)"FONT16", CENTER_MODE);
- wait(2);
+ ThisThread::sleep_for(2000);
+
BSP_LCD_SetFont(&Font20);
BSP_LCD_Clear(LCD_COLOR_GREEN);
BSP_LCD_SetBackColor(LCD_COLOR_GREEN);
@@ -29,7 +33,8 @@
BSP_LCD_DisplayStringAt(0, LINE(4), (uint8_t *)"DISCO_L496AG", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"LCD DEMO", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(6), (uint8_t *)"FONT20", CENTER_MODE);
- wait(2);
+ ThisThread::sleep_for(2000);
+
BSP_LCD_Clear(LCD_COLOR_BLUE);
BSP_LCD_SetBackColor(LCD_COLOR_BLUE);
BSP_LCD_SetTextColor(LCD_COLOR_WHITE);
@@ -37,7 +42,6 @@
BSP_LCD_DisplayStringAt(0, LINE(4), (uint8_t *)"DISCO_L496AG", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"LCD DEMO", CENTER_MODE);
BSP_LCD_DisplayStringAt(0, LINE(6), (uint8_t *)"FONT24", CENTER_MODE);
- wait(2);
+ ThisThread::sleep_for(2000);
}
-
}