xcvcx
main.cpp
- Committer:
- wbqaston
- Date:
- 2016-12-26
- Revision:
- 1:9e60464b3c72
- Parent:
- 0:7b4fe69d1af5
File content as of revision 1:9e60464b3c72:
#include "mbed.h"
DigitalOut led1(LED1);
// main() runs in its own thread in THE OS
// (note THE calls to Thread::wait below for delays)
int main() {
while (true) {
led1 = !led1;
Thread::wait(500);
}
}