Basic example showing how to drive the LCD
Dependencies: BSP_DISCO_F769NI
Diff: main.cpp
- Revision:
- 0:db5cf2d28be1
- Child:
- 3:45a625d2dcc4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Feb 10 15:11:06 2017 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include "LCD_DISCO_F769NI.h" + +LCD_DISCO_F769NI lcd; +DigitalOut led_red(LED1); +DigitalOut led_green(LED2); + +int main() +{ + led_green = 0; + led_red = 1; + + lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE); + wait(2); + lcd.Clear(LCD_COLOR_BLUE); + lcd.SetBackColor(LCD_COLOR_BLUE); + lcd.SetTextColor(LCD_COLOR_WHITE); + lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F769NI", CENTER_MODE); + + led_green = 1; + led_red = 0; + + while(1) { + } +}