feat: initial

This commit is contained in:
2025-08-17 09:17:38 +03:00
parent 955f466489
commit 77f68e82ae
3 changed files with 3 additions and 4 deletions

View File

@@ -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.