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