sub1 enc and r1370

Dependencies:   2022_NHK_B_canTR QEI R1370 mbed

Files at this revision

API Documentation at this revision

Comitter:
umekou
Date:
Mon Oct 10 09:53:30 2022 +0000
Parent:
0:dfda9f251700
Commit message:
add reset pin

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r dfda9f251700 -r f286f65bcbec main.cpp
--- a/main.cpp	Sun Oct 09 10:10:09 2022 +0000
+++ b/main.cpp	Mon Oct 10 09:53:30 2022 +0000
@@ -29,11 +29,12 @@
 
 int main()
 {
-    Reset=1;
+    
     led = 1;
     printf("success!\r\n");
     
-    while(1) {    
+    while(1) { 
+        Reset=0;   
         updateenc();
         updatejyro();
         pc.printf("\r\n ");