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@5:13c70bcde7f6, 2015-11-09 (annotated)
- Committer:
- the_sz
- Date:
- Mon Nov 09 17:53:22 2015 +0000
- Revision:
- 5:13c70bcde7f6
- Parent:
- 4:2fe89414d4df
- Child:
- 7:dc29f6647486
color button
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 | 0:995ae8b9afc8 | 3 | int main() |
the_sz | 0:995ae8b9afc8 | 4 | { |
the_sz | 1:35e2ad5cd1fe | 5 | debug_Init(); |
the_sz | 1:35e2ad5cd1fe | 6 | |
the_sz | 2:80026d18fcf3 | 7 | DPrintf("WakeupLight - Hardware v%08X.\r\n",BSP_GetVersion()); |
the_sz | 1:35e2ad5cd1fe | 8 | |
the_sz | 1:35e2ad5cd1fe | 9 | OnBoardLED_Init(); |
the_sz | 0:995ae8b9afc8 | 10 | |
the_sz | 1:35e2ad5cd1fe | 11 | LED_Init(); |
the_sz | 1:35e2ad5cd1fe | 12 | |
the_sz | 2:80026d18fcf3 | 13 | UI_Init(); |
the_sz | 1:35e2ad5cd1fe | 14 | |
the_sz | 5:13c70bcde7f6 | 15 | /* |
the_sz | 5:13c70bcde7f6 | 16 | #include "SDFileSystem.h" |
the_sz | 5:13c70bcde7f6 | 17 | SDFileSystem sd(PD_2, PC_8, PC_12, PC_11, "sd"); // MOSI, MISO, SCLK, SSEL |
the_sz | 5:13c70bcde7f6 | 18 | DigitalOut sdsd(PC_9); |
the_sz | 5:13c70bcde7f6 | 19 | mkdir("/sd/foo",0777); |
the_sz | 5:13c70bcde7f6 | 20 | FILE *fp = fopen("/sd/mbed.txt", "w"); |
the_sz | 5:13c70bcde7f6 | 21 | fprintf(fp, "Hello World!\n"); |
the_sz | 5:13c70bcde7f6 | 22 | fclose(fp); |
the_sz | 5:13c70bcde7f6 | 23 | */ |
the_sz | 4:2fe89414d4df | 24 | |
the_sz | 2:80026d18fcf3 | 25 | for (;;) |
the_sz | 2:80026d18fcf3 | 26 | { |
the_sz | 2:80026d18fcf3 | 27 | UI_Poll(); |
the_sz | 0:995ae8b9afc8 | 28 | } |
the_sz | 0:995ae8b9afc8 | 29 | } |