A class representing a tabbing actuator. More...
#include <TabbingActuator.h>
Public Member Functions | |
| TabbingActuator (int pin) | |
| Constructor for TabbingActuator. | |
| void | activate () override |
| Activates the tabbing actuator. | |
| void | deactivate () override |
| Deactivates the tabbing actuator. | |
Public Member Functions inherited from Actuator | |
| Actuator (int pin, ActuatorType type) | |
| Constructor for the Actuator class. | |
Additional Inherited Members | |
Protected Attributes inherited from Actuator | |
| 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 tabbing actuator.
This actuator is designed to create a tapping or tabbing sensation using a servo motor.
|
inline |
Constructor for TabbingActuator.
Initializes the tabbing actuator by attaching the servo to the specified pin and setting it to the initial position (180 degrees).
| pin | The GPIO pin to which the actuator is connected. |
|
inlineoverridevirtual |
Activates the tabbing actuator.
Moves the servo to 90 degrees to simulate a tabbing motion.
Implements Actuator.
|
inlineoverridevirtual |