Eser 1
Dependencies: mbed
main.cpp
- Committer:
- gianfalanga
- Date:
- 2016-10-03
- Revision:
- 0:db13d12d2b12
File content as of revision 0:db13d12d2b12:
#include "mbed.h" DigitalOut myled(LED1); DigitalOut myled2(D8); DigitalIn b1(PC_13); int main() { while (1){ if(b1==1){ myled=1; wait(0.02); myled=0; wait(0.02);} else{ myled=1; wait(0.04); myled=0; wait(0.04);} } }