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:303ad425d2ac
- Child:
- 1:03cb3b25065c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Dec 07 11:01:49 2020 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +Serial pc(SERIAL_TX, SERIAL_RX); +//Serial device(PA_9,PA_10); + +DigitalIn dir(PA_10); + +int main() +{ + while(1) { + + if(dir) + { + pc.printf("1\r\n"); + } + else + { + pc.printf("0\r\n"); + } + + } +} \ No newline at end of file