Stefan Seebacher
/
M0_Uebung_3b
M0_Übung_3b
Fork of M0_Lektion03b by
main.cpp
- Committer:
- StefanSeebacher
- Date:
- 2016-04-21
- Revision:
- 1:4ffe29914292
- Parent:
- 0:9fc800807876
File content as of revision 1:4ffe29914292:
#include "mbed.h" // **** DEFINITIONEN **** DigitalOut ledGR(p5); DigitalOut ledBL(p34); DigitalOut ledRT(p36); // **** HAUPTPROGRAMM **** int main() { while(1) { ledGR = 1; ledBL = 1; ledRT = 0; wait(5); ledGR = 0; ledBL = 1; ledRT = 0; wait(2); ledGR = 0; ledBL = 1; ledRT = 1; wait(4); ledGR = 0; ledBL = 1; ledRT = 1; wait(1); ledGR = 1; ledBL = 1; ledRT = 1; wait(1); ledGR = 0; ledBL = 1; ledRT = 1; wait(1); ledGR = 1; ledBL = 1; ledRT = 1; wait(1); ledGR = 0; ledBL = 1; ledRT = 1; wait(1); ledGR = 1; ledBL = 1; ledRT = 1; wait(1); ledGR = 0; ledBL = 1; ledRT = 0; wait(2); } } // **** ENDE ****