涼太郎 中村 / Mbed 2 deprecated 9_6test

Dependencies:   mbed

Fork of ARAI45th by 涼太郎 中村

Files at this revision

API Documentation at this revision

Comitter:
choutin
Date:
Thu Sep 01 09:19:34 2016 +0000
Parent:
1:10cc86cabdce
Child:
3:56b034c41dc5
Commit message:
a

Changed in this revision

locate.h Show annotated file Show diff for this revision Revisions of this file
--- a/locate.h	Thu Sep 01 08:53:14 2016 +0000
+++ b/locate.h	Thu Sep 01 09:19:34 2016 +0000
@@ -48,8 +48,8 @@
     enc_v = 1;
     
     //counting on both A&B inputs, 4 ticks per cycle,  16-bit count
-    //use PA8 PA9 = Nucleo D7 D8
-    EncoderInit(&encoder1, &timer1, TIM1, 0xffff, TIM_ENCODERMODE_TI12);
+    //use PB6 PB7 = Nucleo D7 D8
+    EncoderInit(&encoder1, &timer1, TIM4, 0xffff, TIM_ENCODERMODE_TI12);
 
     //counting on both A&B inputs, 4 ticks per cycle,  16-bit count
     //use PA0 PA1 = Nucleo A0 A1