にいむら にいむら
/
mainboardnrp2018
unkounko
Diff: Output/Motor/Motor.h
- Revision:
- 8:cb53beff4bb2
- Parent:
- 4:42ba5ccc4a2a
--- a/Output/Motor/Motor.h Sat Jan 27 05:29:03 2018 +0000 +++ b/Output/Motor/Motor.h Sat Feb 24 07:32:11 2018 +0000 @@ -3,6 +3,7 @@ #include <stdint.h> +//#define USE_MOTOR0_SENSOR namespace MOTOR { #define FREE 0 @@ -39,6 +40,12 @@ #define MOTOR2_PWM_PIN D10 #define MOTOR3_PWM_PIN D11 #define MOTOR4_PWM_PIN A2 + + #ifdef USE_MOTOR0_SENSOR + #define MOTOR_START_NUM 1 + #else + #define MOTOR_START_NUM 0 + #endif typedef struct {