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

Revision:
1:35e2ad5cd1fe
Parent:
0:995ae8b9afc8
Child:
2:80026d18fcf3
--- a/main.cpp	Thu Oct 29 02:30:51 2015 +0000
+++ b/main.cpp	Thu Oct 29 05:00:04 2015 +0000
@@ -1,30 +1,33 @@
-#include "mbed.h"
-#include "TS_DISCO_F746NG.h"
-#include "LCD_DISCO_F746NG.h"
+#include "WakeupLight.h"
 
 LCD_DISCO_F746NG lcd;
 TS_DISCO_F746NG ts;
 
-DigitalOut led1(LED1);
-Ticker toggle_led_ticker;
-
-void toggle_led()
-{
-    led1 = !led1;
-}
-
 int main()
 {
     char buffer[100];
     int counter=0;
-    led1 = 1;
+
+    debug_Init();
+
+    DPrintf("WakeupLight.\r\n");
+
+    OnBoardLED_Init();
 
-    toggle_led_ticker.attach(&toggle_led, 0.2);
+    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),"%u",counter);
+        snprintf(buffer,sizeof(buffer),"ABC %u",counter);
         counter++;
         lcd.DisplayStringAt(0, LINE(1), (uint8_t *)buffer, CENTER_MODE);
     }