library created

This commit is contained in:
ghassan committed 2025-05-11 01:30:11 -07:00
1 parent 322fe58031
commit 9de0ff4ef3
10 files changed
+170 -417

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#include <I2CMotor.h>
I2CMotor motor;
void setup() {
Serial.begin(115200);
motor.begin();
if (motor.found()) {
Serial.print("Motor controller found at address 0x");
Serial.println(motor.address(), HEX);
Serial.println("Identification: " + motor.identify());
motor.setMotorDirection(1, 1); // Motor 1 forward
motor.setMotorSpeed(1, 50); // 50% speed
} else {
Serial.println("Motor controller not found!");
}
}
void loop() {
// Add your control logic here
}