![](/media/cache/profiles/012d0b8e9950a1168ab4bafe9b73750b.jpg.50x50_q85.jpg)
it is test project using DISCO-F469NI target board
Dependencies: BSP_DISCO_F469NI LCD_DISCO_F469NI USBHOST
main.cpp@2:1fb6f946b69b, 2017-08-08 (annotated)
- Committer:
- bcjun@aname.co.kr
- Date:
- Tue Aug 08 09:46:29 2017 +0900
- Revision:
- 2:1fb6f946b69b
- Parent:
- 0:53746acfed69
- Child:
- 3:b61f4db32ed5
add LCD library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jeonbc | 0:53746acfed69 | 1 | #include "mbed.h" |
bcjun@aname.co.kr | 2:1fb6f946b69b | 2 | #include "LCD_DISCO_F469NI.h" |
bcjun@aname.co.kr | 2:1fb6f946b69b | 3 | |
bcjun@aname.co.kr | 2:1fb6f946b69b | 4 | LCD_DISCO_F469NI lcd; |
jeonbc | 0:53746acfed69 | 5 | |
jeonbc | 0:53746acfed69 | 6 | DigitalOut led_green(LED1); |
jeonbc | 0:53746acfed69 | 7 | DigitalOut led_orange(LED2); |
jeonbc | 0:53746acfed69 | 8 | DigitalOut led_red(LED3); |
jeonbc | 0:53746acfed69 | 9 | DigitalOut led_blue(LED4); |
jeonbc | 0:53746acfed69 | 10 | |
bcjun@aname.co.kr | 2:1fb6f946b69b | 11 | int main() { |
bcjun@aname.co.kr | 2:1fb6f946b69b | 12 | |
bcjun@aname.co.kr | 2:1fb6f946b69b | 13 | lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE); |
bcjun@aname.co.kr | 2:1fb6f946b69b | 14 | wait(1); |
bcjun@aname.co.kr | 2:1fb6f946b69b | 15 | |
jeonbc | 0:53746acfed69 | 16 | while(1) { |
jeonbc | 0:53746acfed69 | 17 | // WARNING: LEDs are OFF |
jeonbc | 0:53746acfed69 | 18 | led_green = 1; |
jeonbc | 0:53746acfed69 | 19 | led_orange = 1; |
jeonbc | 0:53746acfed69 | 20 | led_red = 1; |
jeonbc | 0:53746acfed69 | 21 | led_blue = 1; |
jeonbc | 0:53746acfed69 | 22 | wait(0.2); // 200 ms |
jeonbc | 0:53746acfed69 | 23 | // WARNING: LEDs are ON |
jeonbc | 0:53746acfed69 | 24 | led_green = 0; |
jeonbc | 0:53746acfed69 | 25 | led_orange = 0; |
jeonbc | 0:53746acfed69 | 26 | led_red = 0; |
jeonbc | 0:53746acfed69 | 27 | led_blue = 0; |
jeonbc | 0:53746acfed69 | 28 | wait(1.0); // 1 sec |
jeonbc | 0:53746acfed69 | 29 | } |
jeonbc | 0:53746acfed69 | 30 | } |