Sandra Hochegger
/
LED3
led3
main.cpp
- Committer:
- Sandra8152
- Date:
- 2015-05-22
- Revision:
- 0:0ea1e8d20871
File content as of revision 0:0ea1e8d20871:
#include "mbed.h" BusOut myled(LED1, LED2, LED3, LED4); int main() { char wert = 1; bool vor = true; while(1) { myled = wert; wait(0.2); if(vor) { wert = wert << 1; if(wert >= 8) vor = false; } else { wert = wert >> 1; if(wert < 2) vor = true; } } }