I2CMotor/i2c_motor_slave/i2c_motor_slave.ino
2025-05-10 14:07:54 +03:00

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
}