Oppgave 5.1c original
Dependencies: mbed
Fork of Oppgave51c by
main.cpp
- Committer:
- Smashftw
- Date:
- 2017-10-03
- Revision:
- 1:bffc32827968
- Parent:
- 0:577d9598d207
File content as of revision 1:bffc32827968:
#include "mbed.h" DigitalOut myled(LED1); void blink2 (float Tp, float Ta); int main() { int n = 75; while(n>0) { blink2(0.133, 0.067); n--; } return 0; } void blink2(float Tp, float Ta) { myled=1; wait(Tp); myled=0; wait(Ta); }