明石高専ロボ研 mbedライブラリ

Dependencies:   mbed

Dependents:   MDD_L432KC USB2RS485 pathtracking odometry ... more

Files at this revision

API Documentation at this revision

Comitter:
TanakaRobo
Date:
Wed Oct 13 09:12:48 2021 +0000
Parent:
13:77c13e86ad12
Commit message:
first? commit

Changed in this revision

neopixel.cpp Show annotated file Show diff for this revision Revisions of this file
rotary_inc.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 77c13e86ad12 -r bdd394483434 neopixel.cpp
--- a/neopixel.cpp	Sat Feb 27 04:50:22 2021 +0000
+++ b/neopixel.cpp	Wed Oct 13 09:12:48 2021 +0000
@@ -16,7 +16,7 @@
 #define PIXEL_WAIT_4_ (9)
 
 #else
-#error "This board is not supported"
+#error This board is not supported
 #endif
 
 NeoPixelOut::NeoPixelOut(PinName pin, int num) : DigitalOut(pin)
diff -r 77c13e86ad12 -r bdd394483434 rotary_inc.cpp
--- a/rotary_inc.cpp	Sat Feb 27 04:50:22 2021 +0000
+++ b/rotary_inc.cpp	Wed Oct 13 09:12:48 2021 +0000
@@ -18,7 +18,7 @@
     pin_a_->rise(callback(this,&RotaryInc::riseA));
         
     if(mode_ == 2){
-        pin_a_->fall(callback(this,&RotaryInc::fallA));
+        pin_b_->rise(callback(this,&RotaryInc::riseB));
     }else if(mode_ == 4){
         pin_a_->fall(callback(this,&RotaryInc::fallA));
         pin_b_->rise(callback(this,&RotaryInc::riseB));