Skip to content

Instantly share code, notes, and snippets.

@tieubinhco
Created April 1, 2021 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tieubinhco/ca32ae63164ecd510855fc568f8c1fc4 to your computer and use it in GitHub Desktop.
Save tieubinhco/ca32ae63164ecd510855fc568f8c1fc4 to your computer and use it in GitHub Desktop.
Define pin esp32 for 2 motors
#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