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
main.cpp
- Committer:
- piroro4560
- Date:
- 2020-12-23
- Revision:
- 0:4db87cec0fe6
- Child:
- 1:6e1e4116e0bd
File content as of revision 0:4db87cec0fe6:
#include "mbed.h" DigitalOut LED(LED1); DigitalIn(USER_BUTTON); Serial pc(USBTX, USBRX、115200); // tx, rx int main() { while(1) { wait_ms(200); LED = !LED; pc.printf("success\t"); if (USER_BUTTON) pc.printf("button is on"); pc.printf("\r\n"); } }