stm32c8t6_mbed
Dependencies: mbed-rtos mbed mbed-STM32F103C8T6
main.cpp@0:5ebe985c38d4, 2017-09-04 (annotated)
- Committer:
- dungnd2
- Date:
- Mon Sep 04 09:03:14 2017 +0000
- Revision:
- 0:5ebe985c38d4
stm32f103c8t6;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dungnd2 | 0:5ebe985c38d4 | 1 | #include "mbed.h" |
dungnd2 | 0:5ebe985c38d4 | 2 | #include "stm32f103c8t6.h" |
dungnd2 | 0:5ebe985c38d4 | 3 | |
dungnd2 | 0:5ebe985c38d4 | 4 | DigitalOut myled(LED1); |
dungnd2 | 0:5ebe985c38d4 | 5 | |
dungnd2 | 0:5ebe985c38d4 | 6 | int main() { |
dungnd2 | 0:5ebe985c38d4 | 7 | while(1) { |
dungnd2 | 0:5ebe985c38d4 | 8 | myled = 1; // LED is ON |
dungnd2 | 0:5ebe985c38d4 | 9 | wait(0.2); // 200 ms |
dungnd2 | 0:5ebe985c38d4 | 10 | myled = 0; // LED is OFF |
dungnd2 | 0:5ebe985c38d4 | 11 | wait(1.0); // 1 sec |
dungnd2 | 0:5ebe985c38d4 | 12 | } |
dungnd2 | 0:5ebe985c38d4 | 13 | } |