Oppgave 5.2a
Dependencies: mbed
main.cpp
- Committer:
- Smashftw
- Date:
- 2017-10-03
- Revision:
- 0:d64f197db339
File content as of revision 0:d64f197db339:
#include "mbed.h" DigitalOut myled(LED1); void blink4(int Tp, int Ta, int antall); int main() { blink4(500,500,10); return 0; } void blink4(int Tp, int Ta, int antall) { for (int i=0; i<antall; i++) { myled=1; wait_ms(Tp); myled=0; wait_ms(Ta); } }