Ben Bance
/
MAX32630FTHR_Blinky_OS6
Template for Demo Program
main.cpp
- Committer:
- bjbance
- Date:
- 2021-03-12
- Revision:
- 3:cfad8ca57114
- Parent:
- 1:82e519677f1a
File content as of revision 3:cfad8ca57114:
#include "mbed.h" #include "ThisThread.h" DigitalOut rLED(LED1); DigitalOut gLED(LED2); // main() runs in its own thread in the OS // (note the calls to Thread::wait below for delays) int main() { gLED = LED_ON; rLED = LED_ON; ThisThread::sleep_for(1000ms); rLED = LED_OFF; while (true) { gLED = !gLED; ThisThread::sleep_for(500ms); } }