![]() |
OSCR
Open Source Cartridge Reader
|
NeoPixel-specific methods and variables. More...
Enumerations | |
| enum class | NeoPixelState : uint8_t { Off , Dim , Normal , Notification , Error , Custom , Mixed } |
Functions | |
| void | config () |
| void | setup () |
| void | dim () |
| void | on () |
| void | setBackgroundColor (rgb_t rgb) |
| void | resetBackgroundColor () |
| void | setButtonColor (rgb_t rgb) |
| void | setColors (rgb_t background, rgb_t button) |
| void | resetButtonColor () |
| void | useNotificationColor () |
| void | useErrorColor (bool fatal=false) |
| void | useNormalColor () |
| void | resetColors () |
| void | updateColors () |
| bool | isOff () |
| bool | isDim () |
| bool | isNormal () |
| bool | isNotification () |
| bool | isError () |
| bool | isCustom () |
| NeoPixelState | getState () |
| Adafruit_NeoPixel | pixels (3, 13, NEO_GRB+NEO_KHZ800) |
| void | setColors (rgb_t rgb) |
Variables | |
| Adafruit_NeoPixel | pixels |
| class { | |
| rgb_t OSCR::UI::NeoPixel::off | |
| rgb_t OSCR::UI::NeoPixel::normal | |
| rgb_t OSCR::UI::NeoPixel::notification | |
| rgb_t OSCR::UI::NeoPixel::error | |
| rgb_t OSCR::UI::NeoPixel::background | |
| rgb_t OSCR::UI::NeoPixel::button | |
| NeoPixelState buttonState = NeoPixelState::Normal | |
| NeoPixelState backgroundState = NeoPixelState::Normal | |
| NeoPixelState buttonOffState = NeoPixelState::Normal | |
| NeoPixelState backgroundOffState = NeoPixelState::Normal | |
| } | pixelColors |
NeoPixel-specific methods and variables.
Methods and variables for the Adafruit NeoPixel which is usually used by the MINI12864
|
extern |
Dim the NeoPixels.
|
extern |
Get current color state.
|
extern |
Check if the colors are custom colors.
|
extern |
Check if the colors are dimmed.
|
extern |
Check if the colors are error colors.
|
extern |
Check if the colors are normal colors.
|
extern |
Check if the colors are notification colors.
|
extern |
Check if the colors are off.
|
extern |
Turn on the NeoPixels.
| Adafruit_NeoPixel OSCR::UI::NeoPixel::pixels | ( | 3 | , |
| 13 | , | ||
| NEO_GRB+ | NEO_KHZ800 ) |
|
extern |
Reset the LCD background color back to default.
|
extern |
Reset the LCD button color back to default.
|
extern |
Reset colors back to default.
|
extern |
Set the current NeoPixel background color.
|
extern |
Set the LCD button color.
Set the LCD button color.
|
extern |
Update/refresh the LCD's colors.
|
extern |
Use the error colors.
|
extern |
Use the default colors.
|
extern |
Use the notification colors.
| rgb_t OSCR::UI::NeoPixel::background |
| rgb_t OSCR::UI::NeoPixel::button |
| rgb_t OSCR::UI::NeoPixel::error | ( | void | ) |
| rgb_t OSCR::UI::NeoPixel::normal |
| rgb_t OSCR::UI::NeoPixel::notification | ( | void | ) |
| void OSCR::UI::NeoPixel::off |
Turn off the NeoPixels.
| class { ... } OSCR::UI::NeoPixel::pixelColors |
The current colors.
| Adafruit_NeoPixel OSCR::UI::NeoPixel::pixels(3, 13, NEO_GRB+NEO_KHZ800) |