1#ifndef SEGLCD_PCx85_2Row4DigSigBatPwr_H
2#define SEGLCD_PCx85_2Row4DigSigBatPwr_H
5#if !defined(SEGLCD_DISABLE_ALL_LCDS) || defined(SEGLCD_ENABLE_PCF85176_2ROW4DIGSIGBATPWR)
22 size_t write(uint8_t ch)
override;
25 void _setDecimal(uint8_t row, uint8_t col,
bool state)
override;
42 static constexpr uint8_t
ROW1 = 0;
43 static constexpr uint8_t
ROW2 = 1;
Implementation of the PCF85176 controllers.
Definition SegDriver_PCF85176.h:9
static constexpr uint8_t DEFAULT_PCX85_I2C_ADDRESS
Definition SegDriver_PCx85.h:18
static constexpr uint8_t DEFAULT_SUBADDRESS
Definition SegDriver_PCx85.h:19
virtual size_t write(uint8_t)
Definition SegLCDLib.h:113
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:14
static constexpr uint8_t ADDR_SIGNAL
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:28
static constexpr uint8_t ROW2
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:43
static constexpr uint8_t DECIMAL_MAX_ROW
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:48
static constexpr uint8_t OFFSET_POWER
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:36
static constexpr uint8_t BATTERY_MASK
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:55
static constexpr uint8_t SIGNAL_LEVEL_BITS[MAX_SIGNAL_LEVEL]
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:60
static constexpr uint8_t DECIMAL_MAX_COL
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:50
static constexpr uint8_t SIGNAL_MASK
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:59
static constexpr uint8_t ADDR_POWER
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:27
uint8_t _mapSegmentsRow1(uint8_t val)
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:149
static constexpr uint8_t OFFSET_ROW2
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:40
static constexpr uint8_t DECIMAL_POINT_BIT_ROW1
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:45
static constexpr uint8_t DECIMAL_MIN_COL
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:49
void setSignalLevel(uint8_t value)
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:33
void _setDecimal(uint8_t row, uint8_t col, bool state) override
Virtual method for setting decimal point.
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:70
static constexpr uint8_t ADDR_2_SEGS
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:31
static constexpr uint8_t MAX_BATTERY_LEVEL
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:54
static constexpr uint8_t OFFSET_SIGNAL
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:37
static constexpr uint8_t OFFSET_BATT
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:38
size_t write(uint8_t ch) override
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:107
static constexpr uint8_t RAM_SIZE
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:33
void init() override
Logical display sections that can be targeted by higher-level rendering logic.
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:9
static constexpr uint8_t ROW1
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:42
static constexpr uint8_t BATTERY_LEVEL_SEG[MAX_BATTERY_LEVEL]
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:56
void setPowerSymbol(bool state, uint8_t index=0)
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:46
static constexpr uint8_t OFFSET_ROW1
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:39
void setBatteryLevel(uint8_t value)
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:14
uint8_t _mapSegmentsRow2(uint8_t val)
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:163
static constexpr uint8_t DECIMAL_MIN_ROW
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:47
static constexpr uint8_t ADDR_1_SEGS
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:30
static constexpr uint8_t DECIMAL_POINT_BIT_ROW2
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:46
static constexpr uint8_t MAX_SIGNAL_LEVEL
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:58
static constexpr uint8_t ADDR_BATT
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:29
bool _handleDotNoPrevClear(uint8_t ch)
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.cpp:57
static constexpr int8_t DECIMAL_COL_OFFSET
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:51
static constexpr uint8_t POWER_BIT
Definition SegLCD_PCF85176_2Row4DigSigBatPwr.h:62
Abstract I2C transport.
Definition SegTransport.h:54