Driver for a ThinkInk 2.9" Grayscale 4-level T5 display (pre-2025 version of the Adafruit MagTag).
More...
#include <dispDrvThinkInkGrayscale4T5.h>
|
| | dispDrvThinkInkGrayscale4T5 (int16_t dc, int16_t rst, int16_t cs, int16_t sram_cs=-1, int16_t busy=-1) |
| | Constructor for the ThinkInk Grayscale T5 EPD display driver. More...
|
| |
| bool | begin (thinkinkmode_t mode, bool reset=true) override |
| | Attempts to initialize the ThinkInk Grayscale 4 T5 EPD display driver. More...
|
| |
| virtual void | drawStatusBar (const char *io_username) override |
| | Draws a status bar at the top of the display. More...
|
| |
| void | updateStatusBar (int8_t rssi, uint8_t bat, bool mqtt_status) override |
| | Updates the status bar with current information (battery level, connectivity status, etc). More...
|
| |
| virtual void | writeMessage (const char *message) override |
| | Writes a message to the display. More...
|
| |
| | dispDrvBase (int16_t dc, int16_t rst, int16_t cs, int16_t sram_cs=-1, int16_t busy=-1) |
| | Constructor for the base display driver for E-Ink displays. More...
|
| |
| | dispDrvBase (int8_t cs, int8_t dc, int8_t mosi, int8_t sck, int8_t rst=-1, int8_t miso=-1) |
| | Constructor for the base display driver for SPI TFT displays. More...
|
| |
|
virtual | ~dispDrvBase () |
| | Destructor for the base display driver. This destructor is virtual to allow derived classes to clean up resources properly.
|
| |
| virtual bool | begin () |
| | Attempts to initialize a SPI TFT driver. More...
|
| |
| void | setWidth (int16_t w) |
| | Sets the width of the display. More...
|
| |
| void | setHeight (int16_t h) |
| | Sets the height of the display. More...
|
| |
| void | setRotation (uint8_t r) |
| | Sets the rotation of the display. More...
|
| |
| virtual void | setTextSize (uint8_t s) |
| | Sets the text size for the display. More...
|
| |
| virtual void | showSplash () |
| | Displays a splash screen on the display. More...
|
| |
Driver for a ThinkInk 2.9" Grayscale 4-level T5 display (pre-2025 version of the Adafruit MagTag).
◆ dispDrvThinkInkGrayscale4T5()
| dispDrvThinkInkGrayscale4T5::dispDrvThinkInkGrayscale4T5 |
( |
int16_t |
dc, |
|
|
int16_t |
rst, |
|
|
int16_t |
cs, |
|
|
int16_t |
sram_cs = -1, |
|
|
int16_t |
busy = -1 |
|
) |
| |
|
inline |
Constructor for the ThinkInk Grayscale T5 EPD display driver.
- Parameters
-
| dc | Data/Command pin for the display. |
| rst | Reset pin for the display. |
| cs | Chip Select pin for the display. |
| sram_cs | Optional SRAM Chip Select pin for E-Ink displays that support it. |
| busy | Optional Busy pin for the display. |
◆ begin()
| bool dispDrvThinkInkGrayscale4T5::begin |
( |
thinkinkmode_t |
mode, |
|
|
bool |
reset = true |
|
) |
| |
|
inlineoverridevirtual |
Attempts to initialize the ThinkInk Grayscale 4 T5 EPD display driver.
- Parameters
-
| mode | The ThinkInk mode to use for the display. |
| reset | Whether to reset the display before initialization. |
- Returns
- True if the display was initialized successfully, false otherwise.
Reimplemented from dispDrvBase.
◆ drawStatusBar()
| virtual void dispDrvThinkInkGrayscale4T5::drawStatusBar |
( |
const char * |
io_username | ) |
|
|
inlineoverridevirtual |
Draws a status bar at the top of the display.
- Parameters
-
| io_username | The Adafruit IO username to display on the status bar. |
Reimplemented from dispDrvBase.
◆ updateStatusBar()
| void dispDrvThinkInkGrayscale4T5::updateStatusBar |
( |
int8_t |
rssi, |
|
|
uint8_t |
bat, |
|
|
bool |
mqtt_status |
|
) |
| |
|
inlineoverridevirtual |
Updates the status bar with current information (battery level, connectivity status, etc).
- Parameters
-
| rssi | The current WiFi RSSI (signal strength) in dB. |
| bat | The current battery level as a percentage (0-100). |
| mqtt_status | The current MQTT connection status. |
Reimplemented from dispDrvBase.
◆ writeMessage()
| virtual void dispDrvThinkInkGrayscale4T5::writeMessage |
( |
const char * |
message | ) |
|
|
inlineoverridevirtual |
Writes a message to the display.
- Parameters
-
| message | The message to write to the display. |
- Note
- This method overrides the base class method to provide specific functionality for the Think Ink Grayscale 4 EAAMGFGN driver.
Implements dispDrvBase.
The documentation for this class was generated from the following file: