|
ESPHome 2026.12.0-dev
|
Adds a store of the last value read from each bank to a read cache Base. More...
#include <cached_gpio.h>
Protected Member Functions | |
| bool | digital_read_cache (pin_t pin) override |
Protected Attributes | |
| bank_t | input_ [BANKS] {} |
| The input state per bank - 1 means HIGH, 0 means LOW. | |
Adds a store of the last value read from each bank to a read cache Base.
digital_read_hw() stores the bank it reads in input_[pin / BANK_SIZE] (a chip read in one transfer is one bank, input_[0]), and digital_read_cache() is provided.
Definition at line 110 of file cached_gpio.h.
|
inlineoverrideprotected |
Definition at line 117 of file cached_gpio.h.
|
protected |
The input state per bank - 1 means HIGH, 0 means LOW.
Definition at line 122 of file cached_gpio.h.