From 77f68e82ae55945d8ff5fa86929e93c0b6c0a369 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sun, 17 Aug 2025 09:17:38 +0300 Subject: [PATCH] feat: initial --- .gitignore | 1 + README.md | 4 ++-- include/zh_avr_160x_i2c.h | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md index 7e4ff4f..a128937 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ git clone http://git.zh.com.ru/avr_libraries/zh_avr_vector git clone http://git.zh.com.ru/avr_libraries/zh_avr_i2c git clone http://git.zh.com.ru/avr_libraries/zh_avr_common git clone http://git.zh.com.ru/avr_libraries/zh_avr_pcf8574 -git clone http://git.zh.com.ru/avr_libraries/zh_160x_i2c +git clone http://git.zh.com.ru/avr_libraries/zh_avr_160x_i2c ``` In the application, add the component: @@ -71,7 +71,7 @@ void lcd_160x_example_task(void *pvParameters) { zh_avr_i2c_master_init(false); zh_avr_pcf8574_init_config_t pcf8574_init_config = ZH_AVR_PCF8574_INIT_CONFIG_DEFAULT(); - pcf8574_init_config.i2c_address = 0x38; // 27 + pcf8574_init_config.i2c_address = 0x27; zh_avr_pcf8574_init(&pcf8574_init_config, &lcd_160x_handle); zh_avr_160x_init(&lcd_160x_handle, ZH_LCD_16X2); // For LCD 16X2. // zh_avr_160x_init(&lcd_160x_handle, ZH_LCD_16X4); // For LCD 16X4. diff --git a/include/zh_avr_160x_i2c.h b/include/zh_avr_160x_i2c.h index c73d34e..95327a5 100644 --- a/include/zh_avr_160x_i2c.h +++ b/include/zh_avr_160x_i2c.h @@ -94,8 +94,6 @@ extern "C" */ avr_err_t zh_avr_160x_clear_row(zh_avr_pcf8574_handle_t *handle, uint8_t row); - extern void zh_avr_pcf8574_event_handler(zh_avr_pcf8574_event_on_isr_t *event); - #ifdef __cplusplus } #endif \ No newline at end of file