mirror of
https://github.com/esphome/esphome.git
synced 2025-11-11 20:35:51 +00:00
fixes
This commit is contained in:
@@ -54,7 +54,6 @@ bool MAX6956::digital_read_hw(uint8_t pin) {
|
|||||||
// Calculate bank index based on the base class view (no offset adjustment)
|
// Calculate bank index based on the base class view (no offset adjustment)
|
||||||
uint8_t bank_index = pin / MAX6956_BANK_SIZE;
|
uint8_t bank_index = pin / MAX6956_BANK_SIZE;
|
||||||
|
|
||||||
// Use the named constants for register addresses
|
|
||||||
static const uint8_t BANK_REGS[4] = {
|
static const uint8_t BANK_REGS[4] = {
|
||||||
MAX6956_4PORTS_4_7, // Bank 0: 4 ports 4-7 (bits D0-D3, D4-D7 read as 0)
|
MAX6956_4PORTS_4_7, // Bank 0: 4 ports 4-7 (bits D0-D3, D4-D7 read as 0)
|
||||||
MAX6956_8PORTS_8_15, // Bank 1: 8 ports 8-15 (bits D0-D7)
|
MAX6956_8PORTS_8_15, // Bank 1: 8 ports 8-15 (bits D0-D7)
|
||||||
|
|||||||
Reference in New Issue
Block a user