LCD demo using ST BSP driver
Dependencies: BSP_DISCO_L496AG
Revision 4:6831ef31324d, committed 2019-11-20
- Comitter:
- Jerome Coutant
- Date:
- Wed Nov 20 16:59:36 2019 +0100
- Parent:
- 3:ff6ab501ecb0
- Commit message:
- Update with CubeL4 V1.14.0
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Wed Nov 20 16:59:36 2019 +0100 @@ -0,0 +1,2 @@ +BUILD +mbed-os/
--- a/BSP_DISCO_L496AG.lib Mon Mar 26 14:34:09 2018 +0200 +++ b/BSP_DISCO_L496AG.lib Wed Nov 20 16:59:36 2019 +0100 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/BSP_DISCO_L496AG/#d83f1c8ca282 +https://developer.mbed.org/teams/ST/code/BSP_DISCO_L496AG/#106c7b82e064
--- 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); } - }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Wed Nov 20 16:59:36 2019 +0100 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#699372421a3b388fe568e9be85b1a985749a438f
--- a/mbed.bld Mon Mar 26 14:34:09 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/994bdf8177cb \ No newline at end of file