CO Pilot Code
CO Pilot Code
void setup() {
Serial.begin(9600); // Set the data rate for the serial communication
motor1.setSpeed(200); // Set motor speed (0-255)
motor2.setSpeed(200);
}
void loop() {
if (Serial.available() > 0) {
command = Serial.read(); // Read the incoming command