Adafruit FeatherOLED H.
More...
#include <Adafruit_FeatherOLED.h>
Adafruit FeatherOLED H.
Class that extends the SSD1306 to allow easy usage such as displaying the battery
◆ BatteryIconType
The Battery Icon Types
| Enumerator |
|---|
| FOLED_BATTERYICON_NONE | Displays volts
|
| FOLED_BATTERYICON_THREEBAR | Displays a 3-bar icon
|
◆ Adafruit_FeatherOLED()
| Adafruit_FeatherOLED::Adafruit_FeatherOLED |
( |
TwoWire * |
wire = &Wire, |
|
|
int |
reset = -1 |
|
) |
| |
|
inline |
Class Constructor.
- Parameters
-
| wire | The Wire object |
| reset | Perform a Reset on initialization |
◆ setBattery()
| void Adafruit_FeatherOLED::setBattery |
( |
float |
vbat | ) |
|
|
inline |
Sets the Battery Value.
- Parameters
-
◆ setBatteryVisible()
| void Adafruit_FeatherOLED::setBatteryVisible |
( |
bool |
enable | ) |
|
|
inline |
Sets the Battery Value Visibility.
- Parameters
-
| enable | Is visibility enabled? |
◆ setBatteryIcon()
| void Adafruit_FeatherOLED::setBatteryIcon |
( |
bool |
enable | ) |
|
|
inline |
Sets the Battery Icon Visibility.
- Parameters
-
| enable | Is visibility enabled? |
◆ getBatteryVoltage()
| float Adafruit_FeatherOLED::getBatteryVoltage |
( |
| ) |
|
Query the Feather for the Lipoly battery voltage.
- Returns
- The battery voltage in volts
◆ clearMsgArea()
| void Adafruit_FeatherOLED::clearMsgArea |
( |
bool |
update = true | ) |
|
Clears the message area (the middle 128x16 pixels) and sets the cursor to 0, 8.
- Parameters
-
| update | Automatically update the display after clearing |
◆ _battery
| float Adafruit_FeatherOLED::_battery |
|
protected |
◆ _batteryIcon
| bool Adafruit_FeatherOLED::_batteryIcon |
|
protected |
◆ _batteryVisible
| bool Adafruit_FeatherOLED::_batteryVisible |
|
protected |
The documentation for this class was generated from the following files: