Controller Class for Mbed.

Files at this revision

API Documentation at this revision

Comitter:
kikuchi8810
Date:
Fri Dec 17 10:04:13 2021 +0000
Parent:
0:4f5b9889cbc4
Commit message:
update

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4f5b9889cbc4 -r ab1c94d6f4fb main.cpp
--- 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();