
TD
exercice2.cpp
- Committer:
- jomfec
- Date:
- 2016-05-02
- Revision:
- 0:61dd4bb6eebc
File content as of revision 0:61dd4bb6eebc:
#include "mbed.h" BusOut myleds(LED4,LED3,LED2,LED1); int main() { char x; while(1){ for(x=8;x>1;x=x/2){ myleds.write(x); wait(0.2); } for(x=1;x<8;x=x*2){ myleds.write(x); wait(0.2); } } }