Created
April 1, 2021 04:27
-
-
Save tieubinhco/ca32ae63164ecd510855fc568f8c1fc4 to your computer and use it in GitHub Desktop.
Define pin esp32 for 2 motors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define IN1_L 27 //motor Left Pin1 | |
#define IN2_L 26 //motor Left Pin2 | |
#define IN1_R 33 //motor Right Pin1 | |
#define IN2_R 32 //motor Right Pin2 | |
#define PWM_L 14 //PWM motor Left pin | |
#define PWM_R 14 //PWM motor Right pin | |
#define ENA_L 16 //Encoder A motor Left | |
#define ENB_L 17 //Encoder B motor Left | |
#define ENA_R 18 //Encoder A motor Right | |
#define ENB_R 19 //Encoder B motor Right |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment