|
Adafruit Feather OLED
|
Adafruit FeatherOLED SH110X H. More...
#include <Adafruit_FeatherOLED_SH110X.h>
Public Types | |
| enum | BatteryIconType { FOLED_BATTERYICON_NONE = 0, FOLED_BATTERYICON_THREEBAR = 1 } |
Public Member Functions | |
| Adafruit_FeatherOLED_SH110X (TwoWire *wire=&Wire, int reset=-1) | |
| Class Constructor. More... | |
| void | setBattery (float vbat) |
| Sets the Battery Value. More... | |
| void | setBatteryVisible (bool enable) |
| Sets the Battery Value Visibility. More... | |
| void | setBatteryIcon (bool enable) |
| Sets the Battery Icon Visibility. More... | |
| float | getBatteryVoltage () |
| Query the Feather for the Lipoly battery voltage. More... | |
| void | init (void) |
| Initialises the display (always call this first!) | |
| void | clearMsgArea (bool update=true) |
| Clears the message area (the middle 128x16 pixels) and sets the cursor to 0, 8. More... | |
| void | renderBattery (void) |
| Renders the battery icon. | |
Protected Attributes | |
| float | _battery |
| bool | _batteryIcon |
| bool | _batteryVisible |
Adafruit FeatherOLED SH110X H.
Class that extends the SH110X to allow easy usage such as displaying the battery
|
inline |
Class Constructor.
| wire | The Wire object |
| reset | Perform a Reset on initialization |
|
inline |
Sets the Battery Value.
| vbat | The Battery Voltage |
|
inline |
Sets the Battery Value Visibility.
| enable | Is visibility enabled? |
|
inline |
Sets the Battery Icon Visibility.
| enable | Is visibility enabled? |
| float Adafruit_FeatherOLED_SH110X::getBatteryVoltage | ( | ) |
Query the Feather for the Lipoly battery voltage.
| void Adafruit_FeatherOLED_SH110X::clearMsgArea | ( | bool | update = true | ) |
Clears the message area (the middle 128x16 pixels) and sets the cursor to 0, 8.
| update | Automatically update the display after clearing |
|
protected |
Battery Value
|
protected |
Display Battery Icon
|
protected |
Battery Info Visible
1.8.13