Initial commit

This commit is contained in:
2021-03-10 10:25:56 +01:00
commit 46e97a4a00
9 changed files with 289 additions and 0 deletions
+23
View File
@@ -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