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:
- ryouheitakamoto
- Date:
- 2020-12-07
- Revision:
- 0:303ad425d2ac
- Child:
- 1:f7f1c0356ffd
File content as of revision 0:303ad425d2ac:
#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");
}
}
}