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.
Diff: main.cpp
- Revision:
- 0:016968e54f88
- Child:
- 1:97d5e01d84c5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Mar 09 00:13:21 2019 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx + +InterruptIn mybutton(USER_BUTTON); +DigitalOut myled(LED1); +DigitalOut extled(PC_0); + +int main(){ + while (1){ + if (mode == 0){ + pc.printf("short\r\n"); + wait(1); + } + else{ + pc.printf("long\r\n"); + wait(1); + } + } +} \ No newline at end of file