|
Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
|
#include <Actuators.h>


Public Member Functions | |
| Actuator (ACTUATOR_TYPE actType, int instance) | |
| virtual void | initialize ()=0 |
| virtual void | package (JsonObject json)=0 |
| virtual void | control (JsonArray json)=0 |
| void | printModuleName (const char *message) override |
| const char * | getModuleName () override |
| const char * | typeToString () |
| int | get_instance_num () |
Public Member Functions inherited from Module | |
| Module (const char *modName) | |
| void | setModuleName (const char *modName) |
| virtual const char * | getModuleName () |
| virtual void | printModuleName (const char *message) |
| virtual void | initialize ()=0 |
| virtual void | measure ()=0 |
| virtual void | package ()=0 |
| virtual void | power_up ()=0 |
| virtual void | power_down ()=0 |
| virtual void | display_data () |
Protected Member Functions | |
| void | measure () override |
| void | power_up () override |
| void | power_down () override |
| void | package () override |
Additional Inherited Members | |
Public Attributes inherited from Module | |
| bool | moduleInitialized = true |
| int | module_address = -1 |
All actuators eg. Servos, Steppers, etc. use this to allow for max control
|
pure virtual |
Called when a packet is received that needs to move the actuator
| json | The parameters that can change |
Implemented in Loom_Neopixel, Loom_Relay, Loom_Servo, and Loom_Stepper.
|
inline |
Get the instance number of the actuator
|
inlineoverridevirtual |
Reimplemented from Module.
|
pure virtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverridevirtual |
Reimplemented from Module.
|
inline |
Convert the type of actuator to a String