Oppgave 5.1c
Dependencies: mbed
Revision 0:577d9598d207, committed 2017-09-26
- Comitter:
- Smashftw
- Date:
- Tue Sep 26 11:07:19 2017 +0000
- Commit message:
- oppgave51c
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 26 11:07:19 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +int blink2; +int main() + { + int n = 30; + 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); + } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Sep 26 11:07:19 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/675da3299148 \ No newline at end of file