Making things flash in all colours
Dependencies: mbed
main.cpp
- Committer:
- spyclub
- Date:
- 2014-07-12
- Revision:
- 1:ba3df483c915
- Parent:
- 0:1d9ecfc751ca
File content as of revision 1:ba3df483c915:
#include "mbed.h" DigitalOut redLED(LED1); DigitalOut greenLED(LED2); DigitalOut blueLED(LED3); int main() { redLED = 1; greenLED = 1; blueLED = 1; while(1) { redLED = 0; wait(2.0); redLED = 1; wait(0.2); greenLED = 0; wait(2.0); greenLED = 1; wait(0.2); blueLED = 0; wait(2.0); blueLED = 1; wait(0.2); } }