From d665a6ead55491a2349afae9d269e49a8390eec4 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sat, 7 Jun 2025 08:35:52 +0300 Subject: [PATCH] feat: added interrupt for high level --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b286b7..9d7e6ef 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ 1. Enable interrupt support only if input GPIO's are used. 2. All the INT GPIO's on the extenders must be connected to the one GPIO on ESP. -3. The input GPIO's are always pullup to the power supply. They must be connected to ground to trigger an interrupt. +3. The input GPIO's are always pullup to the power supply. ## Dependencies @@ -133,6 +133,6 @@ void app_main(void) void zh_pcf8574_event_handler(void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data) // Required only if used input GPIO interrupts. { zh_pcf8574_event_on_isr_t *event = event_data; - printf("Interrupt happened on device address 0x%02X on GPIO number %d.\n", event->i2c_address, event->gpio_number); + printf("Interrupt happened on device address 0x%02X on GPIO number %d at level %d.\n", event->i2c_address, event->gpio_number, event->gpio_level); } ```