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_F469NI LCD_DISCO_F469NI mbed
main.cpp
00001 #include "mbed.h" 00002 #include "LCD_DISCO_F469NI.h" 00003 00004 LCD_DISCO_F469NI lcd; 00005 00006 DigitalOut led1(LED1); 00007 00008 int main() 00009 { 00010 led1 = 1; 00011 00012 lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE); 00013 wait(1); 00014 00015 while(1) 00016 { 00017 lcd.Clear(LCD_COLOR_BLUE); 00018 lcd.SetBackColor(LCD_COLOR_BLUE); 00019 lcd.SetTextColor(LCD_COLOR_WHITE); 00020 wait(0.3); 00021 lcd.DisplayStringAt(0, LINE(4), (uint8_t *)"DISCOVERY", CENTER_MODE); 00022 lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F469NI", CENTER_MODE); 00023 wait(1); 00024 00025 lcd.Clear(LCD_COLOR_GREEN); 00026 00027 lcd.SetTextColor(LCD_COLOR_BLUE); 00028 lcd.FillRect(10, 20, 50, 50); 00029 wait(0.1); 00030 lcd.SetTextColor(LCD_COLOR_BROWN); 00031 lcd.FillCircle(80, 80, 50); 00032 wait(0.1); 00033 lcd.SetTextColor(LCD_COLOR_YELLOW); 00034 lcd.FillEllipse(150, 150, 50, 100); 00035 wait(0.1); 00036 lcd.SetTextColor(LCD_COLOR_RED); 00037 lcd.FillCircle(200, 200, 40); 00038 wait(1); 00039 00040 lcd.SetBackColor(LCD_COLOR_ORANGE); 00041 lcd.SetTextColor(LCD_COLOR_CYAN); 00042 BSP_LCD_SetFont(&Font20); 00043 lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"HAVE FUN !!!", CENTER_MODE); 00044 wait(1); 00045 00046 led1 = !led1; 00047 wait(0.5); 00048 } 00049 } 00050
Generated on Thu Jul 14 2022 16:15:15 by
1.7.2