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.
Revision 1:ab1c94d6f4fb, committed 2021-12-17
- Comitter:
- kikuchi8810
- Date:
- Fri Dec 17 10:04:13 2021 +0000
- Parent:
- 0:4f5b9889cbc4
- Child:
- 2:507b31207449
- Commit message:
- update
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Dec 17 10:01:19 2021 +0000
+++ b/main.cpp Fri Dec 17 10:04:13 2021 +0000
@@ -6,7 +6,7 @@
#define INT_TIME_MS INT_TIME*1000
Serial pc(USBTX, USBRX);
-Controller con(P7_4,P7_5, 115200);
+Controller con(P7_4,P7_5, 115200); //TXpin, RXpin, baudrateを設定
DigitalOut led_user(LED_USER);
DigitalOut led_red(LED_RED);
@@ -46,7 +46,7 @@
{
if(flag_10ms)
{
- con.update();
+ con.update(); //main関数のflag内で呼び出す.
if(con.available())
{
int buttonState = con.getButtonState();