![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
3.2.2
Dependencies: mbed
main.cpp
- Committer:
- olemh88
- Date:
- 2017-09-12
- Revision:
- 0:8ec06ed0e9b0
File content as of revision 0:8ec06ed0e9b0:
#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); } } }