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

Committer:
the_sz
Date:
Thu Oct 29 05:00:04 2015 +0000
Revision:
1:35e2ad5cd1fe
Parent:
0:995ae8b9afc8
Child:
2:80026d18fcf3
led, debug led, display, debug port working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
the_sz 1:35e2ad5cd1fe 1 #include "WakeupLight.h"
the_sz 0:995ae8b9afc8 2
the_sz 0:995ae8b9afc8 3 LCD_DISCO_F746NG lcd;
the_sz 0:995ae8b9afc8 4 TS_DISCO_F746NG ts;
the_sz 0:995ae8b9afc8 5
the_sz 0:995ae8b9afc8 6 int main()
the_sz 0:995ae8b9afc8 7 {
the_sz 0:995ae8b9afc8 8 char buffer[100];
the_sz 0:995ae8b9afc8 9 int counter=0;
the_sz 1:35e2ad5cd1fe 10
the_sz 1:35e2ad5cd1fe 11 debug_Init();
the_sz 1:35e2ad5cd1fe 12
the_sz 1:35e2ad5cd1fe 13 DPrintf("WakeupLight.\r\n");
the_sz 1:35e2ad5cd1fe 14
the_sz 1:35e2ad5cd1fe 15 OnBoardLED_Init();
the_sz 0:995ae8b9afc8 16
the_sz 1:35e2ad5cd1fe 17 LED_Init();
the_sz 1:35e2ad5cd1fe 18
the_sz 1:35e2ad5cd1fe 19 BSP_LCD_SetTextColor(LCD_COLOR_RED);
the_sz 1:35e2ad5cd1fe 20 BSP_LCD_SetBackColor(LCD_COLOR_BLACK);
the_sz 1:35e2ad5cd1fe 21
the_sz 1:35e2ad5cd1fe 22 BSP_LCD_SetFont(&display_font_12x22);
the_sz 1:35e2ad5cd1fe 23
the_sz 1:35e2ad5cd1fe 24 LED_StartAnimation(LAE_WAKEUP);
the_sz 1:35e2ad5cd1fe 25
the_sz 0:995ae8b9afc8 26 while(1)
the_sz 0:995ae8b9afc8 27 {
the_sz 0:995ae8b9afc8 28 wait(0.2);
the_sz 0:995ae8b9afc8 29
the_sz 1:35e2ad5cd1fe 30 snprintf(buffer,sizeof(buffer),"ABC %u",counter);
the_sz 0:995ae8b9afc8 31 counter++;
the_sz 0:995ae8b9afc8 32 lcd.DisplayStringAt(0, LINE(1), (uint8_t *)buffer, CENTER_MODE);
the_sz 0:995ae8b9afc8 33 }
the_sz 0:995ae8b9afc8 34 }