Test onboard LED of NUCLEO L152 board
Dependencies: mbed
main.cpp
- Committer:
- microXtra
- Date:
- 2014-12-18
- Revision:
- 0:fd9826e1d40c
File content as of revision 0:fd9826e1d40c:
#include "mbed.h" DigitalOut myled(LED1); int main() { while(1) { myled = 1; // LED is ON wait(1.0); // 1 sec myled = 0; // LED is OFF wait(1.0); // 1 sec myled = 1; // LED is ON wait(0.5); // 500 ms myled = 0; // LED is OFF wait(0.5); // 500 ms } }