From c32649e826f9595b66a219d2733f825047f7598c Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Mon, 26 Jan 2026 18:02:09 +0300 Subject: [PATCH] doc: updated example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e16476c..9e63b5b 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,6 @@ One LCD on bus: #define I2C_PORT (I2C_NUM_MAX - 1) -i2c_master_bus_handle_t i2c_bus_handle = NULL; - zh_pcf8574_handle_t lcd_160x_handle = {0}; void app_main(void) @@ -82,6 +80,7 @@ void app_main(void) .glitch_ignore_cnt = 7, .flags.enable_internal_pullup = true, }; + i2c_master_bus_handle_t i2c_bus_handle = NULL; i2c_new_master_bus(&i2c_bus_config, &i2c_bus_handle); zh_pcf8574_init_config_t config = ZH_PCF8574_INIT_CONFIG_DEFAULT(); config.i2c_handle = i2c_bus_handle;