lcd

Dependencies:   mbed BSP_DISCO_F413ZH

main.cpp

Committer:
arunkoeri
Date:
2020-02-08
Revision:
0:c00aeedac8b5

File content as of revision 0:c00aeedac8b5:

#include "mbed.h"
#include "stm32f413h_discovery_lcd.h"

int main()
{
    BSP_LCD_Init();

    /* Clear the LCD */
    BSP_LCD_Clear(LCD_COLOR_WHITE);

    BSP_LCD_DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE);
    wait(2);
    BSP_LCD_Clear(LCD_COLOR_GREEN);
    BSP_LCD_SetBackColor(LCD_COLOR_GREEN);
    BSP_LCD_SetTextColor(LCD_COLOR_BLACK);
    BSP_LCD_DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F413ZH", CENTER_MODE);

    while(1) {
    }
}