![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Just a simple example of blinking led
Dependencies: mbed
Simple example of blinking led used as a starter to valid all the toolchain in Icarus Sensor System.
main.cpp
- Committer:
- smigielski
- Date:
- 2014-11-19
- Revision:
- 0:b729782a3ad7
- Child:
- 2:c76222c6370a
File content as of revision 0:b729782a3ad7:
#include "mbed.h" DigitalOut myled1(p18); DigitalOut myled2(p20); int main() { while(1) { myled1 = 1; // LED is ON wait(0.05); // 200 ms myled1 = 0; // LED is OFF wait(0.05); // 1 sec myled2 = 1; // LED is ON wait(0.05); // 200 ms myled2 = 0; // LED is OFF wait(0.05); // 1 sec } }