Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board

Dependencies:   BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src

main.cpp

Committer:
the_sz
Date:
2015-10-29
Revision:
1:35e2ad5cd1fe
Parent:
0:995ae8b9afc8
Child:
2:80026d18fcf3

File content as of revision 1:35e2ad5cd1fe:

#include "WakeupLight.h"

LCD_DISCO_F746NG lcd;
TS_DISCO_F746NG ts;

int main()
{
    char buffer[100];
    int counter=0;

    debug_Init();

    DPrintf("WakeupLight.\r\n");

    OnBoardLED_Init();

    LED_Init();

    BSP_LCD_SetTextColor(LCD_COLOR_RED);
    BSP_LCD_SetBackColor(LCD_COLOR_BLACK);

    BSP_LCD_SetFont(&display_font_12x22);
    
    LED_StartAnimation(LAE_WAKEUP);

    while(1)
    {
        wait(0.2);

        snprintf(buffer,sizeof(buffer),"ABC %u",counter);
        counter++;
        lcd.DisplayStringAt(0, LINE(1), (uint8_t *)buffer, CENTER_MODE);
    }
}