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@2:80026d18fcf3, 2015-10-29 (annotated)
- Committer:
- the_sz
- Date:
- Thu Oct 29 12:59:54 2015 +0000
- Revision:
- 2:80026d18fcf3
- Parent:
- 1:35e2ad5cd1fe
- Child:
- 3:ecf7f1f8d749
initial ui
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
the_sz | 1:35e2ad5cd1fe | 1 | #include "WakeupLight.h" |
the_sz | 0:995ae8b9afc8 | 2 | |
the_sz | 2:80026d18fcf3 | 3 | UI_STRUCT ui; |
the_sz | 0:995ae8b9afc8 | 4 | |
the_sz | 0:995ae8b9afc8 | 5 | int main() |
the_sz | 0:995ae8b9afc8 | 6 | { |
the_sz | 1:35e2ad5cd1fe | 7 | debug_Init(); |
the_sz | 1:35e2ad5cd1fe | 8 | |
the_sz | 2:80026d18fcf3 | 9 | DPrintf("WakeupLight - Hardware v%08X.\r\n",BSP_GetVersion()); |
the_sz | 1:35e2ad5cd1fe | 10 | |
the_sz | 1:35e2ad5cd1fe | 11 | OnBoardLED_Init(); |
the_sz | 0:995ae8b9afc8 | 12 | |
the_sz | 1:35e2ad5cd1fe | 13 | LED_Init(); |
the_sz | 1:35e2ad5cd1fe | 14 | |
the_sz | 2:80026d18fcf3 | 15 | UI_Init(); |
the_sz | 1:35e2ad5cd1fe | 16 | |
the_sz | 2:80026d18fcf3 | 17 | //LED_StartAnimation(LAE_WAKEUP); |
the_sz | 1:35e2ad5cd1fe | 18 | |
the_sz | 2:80026d18fcf3 | 19 | ui.flags=UI_FLAG_TYPE_CLOCK; |
the_sz | 2:80026d18fcf3 | 20 | UI_Show(&ui); |
the_sz | 0:995ae8b9afc8 | 21 | |
the_sz | 2:80026d18fcf3 | 22 | for (;;) |
the_sz | 2:80026d18fcf3 | 23 | { |
the_sz | 2:80026d18fcf3 | 24 | UI_Poll(); |
the_sz | 0:995ae8b9afc8 | 25 | } |
the_sz | 0:995ae8b9afc8 | 26 | } |