kumaresh kj
/
NucleoF103_blink_led
LED blink example with different type of initializing
main.cpp
- Committer:
- kumaresh
- Date:
- 2015-04-17
- Revision:
- 0:7bf4747cc128
File content as of revision 0:7bf4747cc128:
#include "mbed.h" // different type of initializing LED in NUCLEO board DigitalOut myled1(LED1); // DigitalOut myled2(PA_5); // LED connected to pin PA5 in board DigitalOut myled3(D13); // same as PA5. D13 arduino pin format int main() { while(1) { myled1 = 1; // LED is ON wait(0.2); // 200 ms delay function. 1 is equal to one second myled2 = 0; // LED is OFF wait(1); // 1 sec myled3 = 1; // LED is ON wait(0.8); // 800 ms myled1 = 0; // LED is OFF wait(1); // 1 sec } }