Adafruit Library
|
Functions | |
void | initStatusLED () |
Initializes board-specific status LED pixel. | |
void | releaseStatusLED () |
De-initializes the status LED and releases pin. | |
void | setStatusLEDBrightness (float brightness) |
Sets the status pixel's brightness. More... | |
void | setStatusLEDColor (uint32_t color) |
Sets a status RGB LED's color. More... | |
void | setStatusLEDColor (uint32_t color, int brightness) |
Sets a status RGB LED's color. More... | |
int16_t | getStatusNeoPixelPin () |
Retrieve the pin number used for NeoPixel data output. More... | |
int16_t | getStatusDotStarDataPin () |
Retrieve the pin number used for DotStar data output. More... | |
void | statusLEDFade (uint32_t color, int numFades=3) |
Fades the status LED. More... | |
uint32_t | ledStatusStateToColor (ws_led_status_t statusState) |
Converts the a ws_led_status_t status state to color. More... | |
void | statusLEDSolid (ws_led_status_t statusState=WS_LED_STATUS_ERROR_RUNTIME) |
Sets the status LED to a specific color depending on the hardware's state. More... | |
void | statusLEDBlink (ws_led_status_t statusState) |
Blinks a status LED a specific color depending on the hardware's state. More... | |
Variables | |
Wippersnapper | WS |
Interfaces for the Wippersnapper status indicator LED/NeoPixel/Dotstar/RGB LED.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Copyright (c) Brent Rubell 2020-2022 for Adafruit Industries.
BSD license, all text here must be included in any redistribution.
void setStatusLEDBrightness | ( | float | brightness | ) |
Sets the status pixel's brightness.
brightness | Desired pixel brightness, from 0.0 (0%) to 1.0 (100%). |
void setStatusLEDColor | ( | uint32_t | color | ) |
Sets a status RGB LED's color.
color | Desired RGB color. |
void setStatusLEDColor | ( | uint32_t | color, |
int | brightness | ||
) |
Sets a status RGB LED's color.
color | Desired RGB color. |
brightness | Brightness level, as an integer |
int16_t getStatusNeoPixelPin | ( | ) |
Retrieve the pin number used for NeoPixel data output.
int16_t getStatusDotStarDataPin | ( | ) |
Retrieve the pin number used for DotStar data output.
void statusLEDFade | ( | uint32_t | color, |
int | numFades = 3 |
||
) |
Fades the status LED.
color | The specific color to fade the status LED. |
numFades | The amount of time to fade/pulse the status LED. |
uint32_t ledStatusStateToColor | ( | ws_led_status_t | statusState | ) |
Converts the a ws_led_status_t status state to color.
statusState | Hardware's status state. |
void statusLEDSolid | ( | ws_led_status_t | statusState = WS_LED_STATUS_ERROR_RUNTIME | ) |
Sets the status LED to a specific color depending on the hardware's state.
statusState | Hardware's status state. |
void statusLEDBlink | ( | ws_led_status_t | statusState | ) |
Blinks a status LED a specific color depending on the hardware's state.
statusState | Hardware's status state. |
Wippersnapper variable.