mirror of
https://github.com/okalachev/flix.git
synced 2026-01-13 06:26:52 +00:00
Move motorsActive function to motors.ino
This commit is contained in:
@@ -46,3 +46,7 @@ void sendMotors() {
|
||||
ledcWrite(MOTOR_2_PIN, getDutyCycle(motors[2]));
|
||||
ledcWrite(MOTOR_3_PIN, getDutyCycle(motors[3]));
|
||||
}
|
||||
|
||||
bool motorsActive() {
|
||||
return motors[0] != 0 || motors[1] != 0 || motors[2] != 0 || motors[3] != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user