14#include "../../../runtime/Runtime.hpp"
15#include "../../Motor.hpp"
77 const uint8_t kForwardPin;
78 const uint8_t kBackwardPin;
79 const uint8_t kEnablePin;
81 const uint8_t kOutput;
84 bool mAttached{
false };
A brushed motor is controlled via two wires where the flow of current determines the direction of rot...
void setSpeed(int speed) override
Sets the motor speed and direction as the percentage of the maximum possible speed,...
Interface programmatically representing any kind of motor.
An interface to serve as a wrapper for the native runtime environment, greatly inspired by the Arduin...
Helper class to represent brushed motor pins.
BrushedMotorPins(uint8_t forwardPin, uint8_t backwardPin, uint8_t enablePin)
Construct a BrushedMotorPins object.