3.2.2
Dependencies: mbed
Revision 0:8ec06ed0e9b0, committed 2017-09-12
- Comitter:
- olemh88
- Date:
- Tue Sep 12 11:34:24 2017 +0000
- Commit message:
- 3.2.2
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 12 11:34:24 2017 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +Serial pc(USBTX, USBRX); +int x = 0; +int pulser; +int main() +{ + while(1) { + pc.printf("Skriv inn antall pulser: "); + pc.scanf("%d", &pulser); + for(x = 0; x < pulser; x++) { + myled = 1; + wait_ms(500); + myled = 0; + wait_ms(500); + + } + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Sep 12 11:34:24 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec \ No newline at end of file