![]() |
Firmware for an ad-hoc mesh network of Internet-of-Things devices based on LoRa (Long Range radio) that can be deployed quickly and cheaply.
|
Internal on board LED abstraction. More...
#include <DuckLed.h>
Public Member Functions | |
void | setColor (int ledR=CDPCFG_PIN_RGBLED_R, int ledG=CDPCFG_PIN_RGBLED_G, int ledB=CDPCFG_PIN_RGBLED_B) |
Set the Color object. More... | |
void | setupLED (int redPin=CDPCFG_PIN_RGBLED_R, int greenPin=CDPCFG_PIN_RGBLED_G, int bluePin=CDPCFG_PIN_RGBLED_B) |
Initialize access to the LED. More... | |
Static Public Member Functions | |
static DuckLed * | getInstance () |
Get a singletom instance of the DuckLed class. More... | |
Internal on board LED abstraction.
Provides internal access to the onboard LED, so CDP can show useful status information about the network and the device.
|
static |
void DuckLed::setColor | ( | int | ledR = CDPCFG_PIN_RGBLED_R , |
int | ledG = CDPCFG_PIN_RGBLED_G , |
||
int | ledB = CDPCFG_PIN_RGBLED_B |
||
) |
Set the Color object.
ledR | value of the Red component. Defaults to CDPCFG_PIN_RGBLED_R |
ledG | value of the Green component. Defaults to CDPCFG_PIN_RGBLED_G |
ledB | value of the Blue component. Defaults to CDPCFG_PIN_RGBLED_B |
void DuckLed::setupLED | ( | int | redPin = CDPCFG_PIN_RGBLED_R , |
int | greenPin = CDPCFG_PIN_RGBLED_G , |
||
int | bluePin = CDPCFG_PIN_RGBLED_B |
||
) |
Initialize access to the LED.
redPin | value of the Red pin. Defaults to CDPCFG_PIN_RGBLED_R |
greenPin | value of the Green pin. Defaults to CDPCFG_PIN_RGBLED_G |
bluePin | value of the Blue pin. Defaults to CDPCFG_PIN_RGBLED_B |