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 mbed BSP_DISCO_F429ZI
Diff: main.cpp
- Revision:
- 0:f088dc72fbd4
- Child:
- 1:2d619409d9fc
- Child:
- 4:3fe4fa6d9799
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 21 10:07:50 2019 +0000 @@ -0,0 +1,55 @@ +#include "mbed.h" +#include "LCD_DISCO_F429ZI.h" + +LCD_DISCO_F429ZI lcd; + +DigitalOut led1(LED1); + +int main() +{ + led1 = 1; + + BSP_LCD_SetFont(&Font20); + lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE); + wait(1); + + while(1) + { + lcd.Clear(LCD_COLOR_BLUE); + lcd.SetBackColor(LCD_COLOR_BLUE); + lcd.SetTextColor(LCD_COLOR_WHITE); + lcd.FillRect(10, 10, 90, 30); + lcd.FillRect(70, 40, 30, 120); + wait(0.5); + lcd.Clear(LCD_COLOR_BLUE); + wait(0.3); + /*wait(0.3); + lcd.DisplayStringAt(0, LINE(4), (uint8_t *)"DISCOVERY", CENTER_MODE); + lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F429ZI", CENTER_MODE); + wait(1); + + lcd.Clear(LCD_COLOR_GREEN); + + lcd.SetTextColor(LCD_COLOR_BLUE); + lcd.FillRect(10, 20, 50, 50); + wait(0.1); + lcd.SetTextColor(LCD_COLOR_BROWN); + lcd.FillCircle(80, 80, 50); + wait(0.1); + lcd.SetTextColor(LCD_COLOR_YELLOW); + lcd.FillEllipse(150, 150, 50, 100); + wait(0.1); + lcd.SetTextColor(LCD_COLOR_RED); + lcd.FillCircle(200, 200, 40); + wait(1); + + lcd.SetBackColor(LCD_COLOR_ORANGE); + lcd.SetTextColor(LCD_COLOR_CYAN); + BSP_LCD_SetFont(&Font24); + lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"HAVE FUN !!!", CENTER_MODE); + wait(1); + + led1 = !led1;*/ + } +} +