Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//Pin Configs
|
||||
#define M_DIR_11 15
|
||||
#define M_DIR_12 0
|
||||
#define M_PWM_1 5
|
||||
#define M_DIR_21 4
|
||||
#define M_DIR_22 2
|
||||
#define M_PWM_2 18
|
||||
|
||||
//Motors
|
||||
#define LEFT_MOTOR 1
|
||||
#define RIGHT_MOTOR 2
|
||||
#define BOTH_MOTOR 3
|
||||
|
||||
//Directions
|
||||
#define STOP 0
|
||||
#define FORWARD 1
|
||||
#define BACKWARD 2
|
||||
|
||||
//PWM Configs
|
||||
#define PWM_FREQ 5000
|
||||
#define PWM_RES 8
|
||||
#define PWM_CHANNEL_M1 0
|
||||
#define PWM_CHANNEL_M2 1
|
||||
Reference in New Issue
Block a user