![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
3.2.3
Dependencies: mbed
Revision 0:5d0bf358b5a4, committed 2017-09-12
- Comitter:
- olemh88
- Date:
- Tue Sep 12 11:39:19 2017 +0000
- Commit message:
- 3.2.3
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 |
diff -r 000000000000 -r 5d0bf358b5a4 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 12 11:39:19 2017 +0000 @@ -0,0 +1,24 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +Serial pc(USBTX, USBRX); +int x = 0; +int pulser; +int ms; + +int main() +{ + while(1) { + pc.printf("Skriv inn antall pulser: "); + pc.scanf("%d", &pulser); + pc.printf("Skriv inn antall ms: "); + pc.scanf("%d", &ms); + for(x = 0; x < pulser; x++) { + myled = 1; + wait_ms(ms); + myled = 0; + wait_ms(ms); + + } + } +}
diff -r 000000000000 -r 5d0bf358b5a4 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Sep 12 11:39:19 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec \ No newline at end of file