mirror of
https://github.com/esphome/esphome.git
synced 2025-09-13 00:32:20 +01:00
[gpio_expander] Add intelligent pin type selection to CachedGpioExpander template (#10577)
This commit is contained in:
@@ -27,11 +27,13 @@ void GPIOExpanderTestComponent::setup() {
|
||||
|
||||
bool GPIOExpanderTestComponent::digital_read_hw(uint8_t pin) {
|
||||
ESP_LOGD(TAG, "digital_read_hw pin=%d", pin);
|
||||
// Return true to indicate successful read operation
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GPIOExpanderTestComponent::digital_read_cache(uint8_t pin) {
|
||||
ESP_LOGD(TAG, "digital_read_cache pin=%d", pin);
|
||||
// Return the pin state (always HIGH for testing)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user