#include <Loom_Neopixel.h>
|
| Loom_Neopixel (Manager &man, const bool enableA0=false, const bool enableA1=false, const bool enableA2=true, const neoPixelType colorType=NEO_RGB) |
|
| Loom_Neopixel (const bool enableA0=false, const bool enableA1=false, const bool enableA2=true, const neoPixelType colorType=NEO_RGB) |
|
void | initialize () override |
|
void | package (JsonObject json) override |
|
void | control (JsonArray json) override |
|
void | set_color (const uint8_t port, const uint8_t chain_num, const uint8_t red, const uint8_t green, const uint8_t blue) |
|
void | enable_pin (const uint8_t port, const bool state) |
|
| 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 () |
|
| 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 () |
|
Neopixel LED Strip Controller
- Author
- Will Richards
◆ Loom_Neopixel() [1/2]
Loom_Neopixel::Loom_Neopixel |
( |
Manager & |
man, |
|
|
const bool |
enableA0 = false , |
|
|
const bool |
enableA1 = false , |
|
|
const bool |
enableA2 = true , |
|
|
const neoPixelType |
colorType = NEO_RGB |
|
) |
| |
Constructs a new Neopixel instance
- Parameters
-
man | Reference to the manager |
enableA0 | Enable the first Neopixel |
enableA1 | Enable the second Neopixel |
enableA2 | Enable the third Neopixel |
colorType | specify the color configuration of the neopixel |
◆ Loom_Neopixel() [2/2]
Loom_Neopixel::Loom_Neopixel |
( |
const bool |
enableA0 = false , |
|
|
const bool |
enableA1 = false , |
|
|
const bool |
enableA2 = true , |
|
|
const neoPixelType |
colorType = NEO_RGB |
|
) |
| |
Constructs a new Neopixel instance
- Parameters
-
enableA0 | Enable the first Neopixel |
enableA1 | Enable the second Neopixel |
enableA2 | Enable the third Neopixel |
colorType | specify the color configuration of the neopixel |
◆ control()
void Loom_Neopixel::control |
( |
JsonArray |
json | ) |
|
|
overridevirtual |
Called when a packet is received that needs to move the actuator
- Parameters
-
json | The parameters that can change |
Implements Actuator.
◆ enable_pin()
void Loom_Neopixel::enable_pin |
( |
const uint8_t |
port, |
|
|
const bool |
state |
|
) |
| |
Enable or disable a given Neopixel pin
- Parameters
-
port | Port that we want to change (A0-A2) |
state | State that we want to change the port too |
◆ initialize()
void Loom_Neopixel::initialize |
( |
| ) |
|
|
overridevirtual |
◆ package()
void Loom_Neopixel::package |
( |
JsonObject |
json | ) |
|
|
overridevirtual |
◆ set_color()
void Loom_Neopixel::set_color |
( |
const uint8_t |
port, |
|
|
const uint8_t |
chain_num, |
|
|
const uint8_t |
red, |
|
|
const uint8_t |
green, |
|
|
const uint8_t |
blue |
|
) |
| |
Manually set the color of a specific Neopixel
- Parameters
-
port | The port of the neopixel we want to control (0 - 2) |
chain_num | The number of the neopixel if daisy chained |
red | The red value (0-255) |
green | The green value (0-255) |
blue | The blue value (0-255) |
The documentation for this class was generated from the following files:
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Hardware/Actuators/Loom_Neopixel/Loom_Neopixel.h
- C:/Users/jwilt/AppData/Local/Arduino15/packages/loom4/hardware/samd/4.5/libraries/Loom/src/Hardware/Actuators/Loom_Neopixel/Loom_Neopixel.cpp