Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of Project_script_union_final by
main.cpp
- Committer:
- MarijkeZondag
- Date:
- 2018-09-16
- Revision:
- 4:fbea05c8fe2b
- Parent:
- 3:a3ad58758696
- Child:
- 5:107eb09fb095
File content as of revision 4:fbea05c8fe2b:
#include "mbed.h" #include "MODSERIAL.h" DigitalOut gpo(D0); DigitalOut myled(LED_GREEN); MODSERIAL pc(USBTX, USBRX); DigitalIn button(PTA4); int main() { pc.baud(115200); pc.printf("Hello World!\r\n"); char c; c = pc.getc(); pc.printf(" %c \n",c); while (true) { gpo = !gpo; myled = !myled; // toggle a led wait (0.2f); } }