lololololol
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
main.cpp
- Committer:
- Hendrikvg
- Date:
- 2019-09-14
- Revision:
- 8:d1794f225fff
- Parent:
- 7:d307e31f7391
- Child:
- 9:12b9865e7373
File content as of revision 8:d1794f225fff:
#include "mbed.h" #include "MODSERIAL.h" #include "Callback.h" MODSERIAL pc(USBTX, USBRX); DigitalOut ledr(LED_RED); InterruptIn sw2(SW2); int n = 0; void flash() { n++; pc.printf("The LED is now going to flash %i times.\n\r",n); for (int i = 0; i < n; i++) { ledr = 0; wait_ms(50); ledr = 1; wait_ms(200); } } int main() { pc.baud(115200); ledr = 1; sw2.fall(flash); while(1) { } }