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: mbed
Diff: main.cpp
- Revision:
- 0:2bddaf2cec4a
diff -r 000000000000 -r 2bddaf2cec4a main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Oct 08 16:41:36 2019 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalIn switchstate(p17); +Serial pc(USBTX, USBRX); + +int main() { + + pc.baud(921600); + + while(1) { + pc.printf("switchstate: %i\r", switchstate.read()); + wait(0.500); + } +} + +