13 lines
281 B
C++
13 lines
281 B
C++
#include "ESP32MotorI2C.h"
|
|
|
|
// EN1, IN1, IN2, IN3, IN4, EN2 (change pins as needed for your hardware)
|
|
ESP32MotorI2C motor(0, 1, 2, 4, 5, 6);
|
|
|
|
void setup() {
|
|
motor.begin(8, 9, 100000); // Use your actual I2C pins and frequency
|
|
}
|
|
|
|
void loop() {
|
|
// Nothing needed for slave
|
|
}
|