LoomActuator class

Abstract base class of actuator modules.

All actuator modules inherit from this class.

Base classes

class LoomModule
Abstract root of Loom component modules inheritance hierarchy.

Derived classes

class Loom_Neopixel
Neopixel tri-color LED actuator module.
class Loom_Relay
Relay actuator module.
class Loom_Servo
Servo actuator module.
class Loom_Stepper
Stepper actuator module.

CONSTRUCTORS / DESTRUCTOR

LoomActuator(LoomManager* manager, const char* module_name, const LoomModule::Type module_type)
Constructor.
~LoomActuator() defaulted virtual
Destructor.

OPERATION

void package(JsonObject json) override
Not all actuators need a package method, implement with empty body.

Function documentation

LoomActuator::LoomActuator(LoomManager* manager, const char* module_name, const LoomModule::Type module_type)

Constructor.

Parameters
manager
module_name in Name of the module (provided by derived classes)
module_type in Type of the module (provided by derived classes)