1
0
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:
J. Nick Koston
2025-09-07 17:57:02 -05:00
committed by GitHub
parent 3cf36e2f94
commit 8c28f346c7
7 changed files with 166 additions and 27 deletions

View File

@@ -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;
}