forked from easytarget/esp32-cam-webserver
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bigalex
committed
Jun 5, 2020
1 parent
f773deb
commit af115a1
Showing
3 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
// Pin definitions for robot peripherals (actuators, LEDs, ...) | ||
// Pin and PWM definitions for robot peripherals (actuators, LEDs, ...) | ||
|
||
// TB6612FNG with | ||
// GPIO 12 - PWM A left motor | ||
// GPIO 13 - PWM B right motor | ||
// GPIO 14 - DIR A | ||
// GPIO 15 - DIR B | ||
|
||
#define MOTOR_L_PWM 12 | ||
#define MOTOR_R_PWM 13 | ||
#define MOTOR_L_DIR 14 | ||
#define MOTOR_R_DIR 15 | ||
#define MOTOR_L_PWM_PIN 12 | ||
#define MOTOR_R_PWM_PIN 13 | ||
#define MOTOR_L_DIR_PIN 14 | ||
#define MOTOR_R_DIR_PIN 15 | ||
|
||
#define MOTOR_L_PWM_CHAN 3 | ||
#define MOTOR_R_PWM_CHAN 4 | ||
// PWM resolution | ||
#define MOTOR_PWM_RES_BIT 10 | ||
// PWM frequency | ||
#define MOTOR_PWM_FREQ_HZ 10000 |