Matt Landrum
/
STM32_Blink_LED
First Plain Blinky
main.cpp
- Committer:
- jmatt
- Date:
- 2019-01-09
- Revision:
- 1:8de97c820f6a
- Parent:
- 0:b3f65381accb
File content as of revision 1:8de97c820f6a:
#include "mbed.h" #include "MyLib.h" DigitalOut led(LED1); int main() { while(1) { led = 1; // LED is ON wait(0.2); // 200 ms led = 0; // LED is OFF wait(0.8); // 800 ms } }