|
| | SegLCD_PCF85176_TempHumidity (TwoWire &i2c, uint8_t address=DEFAULT_PCF85176_I2C_ADDRESS, uint8_t subaddress=DEFAULT_SUBADDRESS) |
| |
| void | init () override |
| | Logical display sections that can be targeted by higher-level rendering logic.
|
| |
| void | clear () override |
| | Clear all visible segments on the display.
|
| |
| void | setBatteryLevel (uint8_t value) |
| |
| void | setSignalLevel (uint8_t value) |
| |
| void | setLabels (uint8_t labels) |
| |
| void | clearLabels (uint8_t labels) |
| |
| void | setCursor (uint8_t row, uint8_t col) override |
| | Set cursor on exact digit.
|
| |
| size_t | write (uint8_t ch) override |
| |
| | SegDriver_PCF85176 (TwoWire &i2c, uint8_t address=DEFAULT_PCF85176_I2C_ADDRESS, uint8_t subaddress=DEFAULT_SUBADDRESS) |
| | Constructor for PCF85176 segment driver.
|
| |
| | SegDriver_PCx85 (TwoWire &i2c, uint8_t address, uint8_t subaddress) |
| | Constructor for PCx85 segment driver.
|
| |
| void | bankSelect (uint8_t input, uint8_t output) |
| | Select bank for input and output.
|
| |
| void | blink (BlinkFrequency blink=BLINK_FREQUENCY_OFF, BlinkMode mode=BLINK_MODE_NORMAL) |
| | Set blink frequency and mode.
|
| |
| void | on () override |
| | Turn the display on.
|
| |
| void | off () override |
| | Turn the display off.
|
| |
| void | command (uint8_t command) override |
| | Send RAW command to controller.
|
| |
| void | flush (uint8_t startAddr, uint8_t length) override |
| | Flush specific range of buffered changes to the display.
|
| |
| virtual void | flush () |
| | Flush all buffered changes to the display.
|
| |
| virtual void | flush (uint8_t startAddr, uint8_t length) |
| | Flush specific range of buffered changes to the display.
|
| |
| virtual | ~SegLCDLib () |
| | Virtual destructor to ensure proper cleanup in derived classes.
|
| |
| void | home () |
| | Set cursor to 0, 0 without clear display.
|
| |
| void | initBacklight (int8_t backlightPin, BacklightMode backlightMode=BACKLIGHT_DIGITAL, bool backlightActiveHigh=true) |
| | Initialize GPIO backlight control.
|
| |
| virtual void | setBacklight (bool state) |
| | Set backlight state (on/off).
|
| |
| virtual void | setBacklight (int brightness) |
| | Set backlight brightness (0-255).
|
| |
| void | setAutoFlush (bool enable) |
| | Enable or disable autoflush mode.
|
| |
| bool | getAutoFlush () const |
| | Get current autoflush state.
|
| |
| const uint8_t * | getRamBuffer () const |
| | Get pointer to internal RAM buffer (read-only).
|
| |
| size_t | getRamBufferSize () const |
| | Get size of internal RAM buffer in bytes.
|
| |
|
| void | _setMode (ModeStatus status, ModeDrive drive=MODE_DRIVE_14, ModeBias bias=MODE_BIAS_13) |
| | Set the mode of the display.
|
| |
| void | _writeRam (uint8_t data, uint8_t address=0) override |
| | Low-level method to write a single byte to display RAM.
|
| |
| void | _writeRam (uint8_t *data, size_t length, uint8_t address=0) override |
| | Low-level method to write a data buffer to display RAM.
|
| |
| void | _setFlag (uint8_t mask) |
| | Set a specific flag bit.
|
| |
| void | _clearFlag (uint8_t mask) |
| | Clear a specific flag bit.
|
| |
| bool | _isFlagSet (uint8_t mask) const |
| | Check if a specific flag bit is set.
|
| |
| void | _clearAllFlags () |
| | Clear all flags.
|
| |
| bool | _dotWrite (uint8_t ch, int8_t minCol, int8_t maxCol, int8_t ramOffset) |
| | Write decimal point.
|
| |
| void | _dotClearCur (int8_t minCol, int8_t maxCol) |
| | Clear current decimal (overwrite).
|
| |
| void | _colonClearIfNotFlagged (uint8_t ch, uint8_t colonCol, uint8_t colonFlag) |
| | Clear colon if its flag is not set.
|
| |
| virtual void | _setColon (uint8_t row, uint8_t col, bool state) |
| | Virtual method for setting colon.
|
| |
| void | _allocateBuffer (size_t size) |
| | Allocate RAM buffer for display data.
|
| |
| void | _writeRamMasked (uint8_t data, uint8_t address, uint8_t mask=0xFF) |
| | Write to display RAM with nibble-aware masking support.
|
| |
| uint8_t | _get_char_value (char ch) |
| | Helper method to convert a character to its segment representation.
|
| |
| uint16_t | _get_16char_value (char ch) |
| | Helper method to convert a character to its 16-segment representation.
|
| |
| bool | _autoFlush = true |
| | Autoflush mode enabled flag (default: true for LCD API 1.0 compatibility).
|
| |
| int8_t | _backlightPin = -1 |
| | Backlight GPIO pin (-1 if disabled)
|
| |
| BacklightMode | _backlightMode = BACKLIGHT_DIGITAL |
| | Backlight mode (DIGITAL or PWM)
|
| |
| bool | _backlightActiveHigh = true |
| | Backlight active high flag.
|
| |
| uint8_t | _backlightBrightness = 0 |
| | Cached backlight brightness.
|
| |
| uint8_t | _displayFlags = 0 |
| | LEDC channel for old ESP32 Arduino Core (2.0.x)
|
| |
| uint8_t * | _ramBuffer = nullptr |
| | Dynamic RAM buffer for display data (allocated by derived classes).
|
| |
| size_t | _ramBufferSize = 0 |
| | Size of allocated RAM buffer in bytes.
|
| |
| uint8_t | _cursorRow = 0 |
| | Current Row.
|
| |
| uint8_t | _cursorCol = 0 |
| | Current Column.
|
| |
| static constexpr uint8_t | DEFAULT_PCF85176_I2C_ADDRESS = 0x38 |
| |
| static constexpr uint8_t | DEFAULT_SUBADDRESS = 0x00 |
| |
| static constexpr uint8_t | FLAG_PENDING_DOT = 0x80 |
| | Common flag for decimal handling when RAM offset is 0.
|
| |
Temperature/humidity LCD with dual rows (PCF85176).
Row 0: Temperature, Row 1: Humidity. Features C and % symbols. I2C interface (SA0 pin sets address, A0-A2 are subaddresses).
- See also
- examples/PCF85176/TempHumidity/TempHumidity.ino
| void SegLCD_PCF85176_TempHumidity::setCursor |
( |
uint8_t |
row, |
|
|
uint8_t |
col |
|
) |
| |
|
overridevirtual |
Set cursor on exact digit.
Because LCD API is mainly used for character displays in this segment displays this function will be littlebit confusing. Because most of Segment LCD has only one row, thus this will be like row 0 and column will represent actual digit.
But if there is LCD like T1T2 LCD. Row 0 will be clock part, Row 1 will be T1: part and Row 2 will be T2: part of LCD
- Parameters
-
| row | Row, where 0-MAXROWS |
| col | Column 0-MAXDIGITS in current row |
Reimplemented from SegLCDLib.