2022 NHK Bteam main totyuu

Dependencies:   HOSOKIkikou FEP_RX22 QEI R1370 ikarashiMDC_2byte_ver mbed 2022_NHK_B_canTR PID SEKIkikou

Committer:
umekou
Date:
Sat Oct 08 08:31:07 2022 +0000
Revision:
4:3c04f88a8cd8
Parent:
2:ea17f9e04972
Child:
5:2934a132d594
change enc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ikarashikota 0:877aeb04390a 1 #ifndef PIN_CONFIG_H
ikarashikota 0:877aeb04390a 2 #define PIN_CONFIG_H
ikarashikota 0:877aeb04390a 3
ikarashikota 0:877aeb04390a 4 #include "mbed.h"
ikarashikota 0:877aeb04390a 5
ikarashikota 0:877aeb04390a 6 /*stop*/
ikarashikota 0:877aeb04390a 7 static PinName const stop_pin = PA_5;
ikarashikota 0:877aeb04390a 8
ikarashikota 0:877aeb04390a 9 /*FEP*/
umekou 4:3c04f88a8cd8 10
ikarashikota 1:78fc05fff36a 11 static PinName const fepTX = PA_9;
ikarashikota 1:78fc05fff36a 12 static PinName const fepRX = PA_10;
umekou 4:3c04f88a8cd8 13 static uint8_t const fepad = 20; // 通信相手のアドレス
ikarashikota 0:877aeb04390a 14
ikarashikota 0:877aeb04390a 15 /*motor serial*/
ikarashikota 0:877aeb04390a 16 static PinName const motorTX = PC_10;
ikarashikota 0:877aeb04390a 17 static PinName const motorRX = PC_11;
ikarashikota 0:877aeb04390a 18
ikarashikota 0:877aeb04390a 19 /*encoder*/
umekou 4:3c04f88a8cd8 20 /*
umekou 4:3c04f88a8cd8 21 static PinName const encoder1_A = PB_2;
umekou 4:3c04f88a8cd8 22 static PinName const encoder1_B = PB_1;
umekou 4:3c04f88a8cd8 23 使えない
umekou 4:3c04f88a8cd8 24 */
ikarashikota 0:877aeb04390a 25 static PinName const encoder2_A = PA_6;
ikarashikota 0:877aeb04390a 26 static PinName const encoder2_B = PA_7;
ikarashikota 0:877aeb04390a 27
umekou 4:3c04f88a8cd8 28 static PinName const encoder3_A = PB_13;
umekou 4:3c04f88a8cd8 29 static PinName const encoder3_B = PB_15;
ikarashikota 0:877aeb04390a 30
ikarashikota 0:877aeb04390a 31 static PinName const encoder4_A = PA_1;
ikarashikota 0:877aeb04390a 32 static PinName const encoder4_B = PA_0;
ikarashikota 0:877aeb04390a 33
ikarashikota 0:877aeb04390a 34 #endif