A class representing a stroking actuator. More...
#include <StrokingActuator.h>
Public Member Functions | |
StrokingActuator (int pin) | |
Constructor for StrokingActuator. | |
void | activate () override |
Activates the stroking actuator. | |
void | deactivate () override |
Deactivates the stroking actuator. | |
![]() | |
Actuator (int pin, ActuatorType type) | |
Constructor for the Actuator class. | |
Additional Inherited Members | |
![]() | |
int | pin |
GPIO pin number the actuator is connected to. | |
ActuatorType | actuatorType |
Type of actuator (e.g., vibration, stroking, tabbing). | |
bool | turnedOn = false |
Flag to check if the actuator is currently active. | |
A class representing a stroking actuator.
This actuator is designed to create a stroking sensation using a servo motor.
|
inline |
Constructor for StrokingActuator.
Initializes the stroking actuator by attaching the servo to the specified pin and setting it to the initial position (0 degrees).
pin | The GPIO pin to which the actuator is connected. |
|
inlineoverridevirtual |
Activates the stroking actuator.
Moves the servo to 180 degrees to simulate a stroking motion.
Implements Actuator.
|
inlineoverridevirtual |