20 Motor(u_int8_t enb, u_int8_t switch1, u_int8_t switch2,
21 bool reversed =
false);
This allows for control of a motor through a L298N module A great explainer on how the l298N module w...
Definition: Motor.h:12
void stop()
Stops the motor by turning off both switches in the H-Bridge.
Definition: Motor.cpp:40
void setSpeed(int speed)
Sets the speed of the motor.
Definition: Motor.cpp:13
Motor(u_int8_t enb, u_int8_t switch1, u_int8_t switch2, bool reversed=false)
Definition: Motor.cpp:3