blinking file
Dependencies: mbed
main.cpp
- Committer:
- CedricMeeuwis
- Date:
- 2019-01-21
- Revision:
- 0:c6a5242db54d
File content as of revision 0:c6a5242db54d:
#include "mbed.h" DigitalOut myled(LED1); int main() { double waitTime = 0.2; while(1) { myled = 1; wait(waitTime); myled = 0; wait(0.2); waitTime = waitTime * 2; if(waitTime > 10){ waitTime = 0.2; } } }