This commit is contained in:
2025-09-30 15:00:39 +03:00
parent 22f8a25246
commit 1bfdecc5ba

View File

@@ -113,7 +113,7 @@ void system_setup_task(void *pvParameters)
pcf8574_init_config.i2c_address = LCD_I2C_ADDRESS; pcf8574_init_config.i2c_address = LCD_I2C_ADDRESS;
zh_avr_pcf8574_init(&pcf8574_init_config, &lcd_handle); zh_avr_pcf8574_init(&pcf8574_init_config, &lcd_handle);
zh_avr_160x_init(&lcd_handle, ZH_LCD_16X4); zh_avr_160x_init(&lcd_handle, ZH_LCD_16X4);
//** BUTTON extender init **/ //** BUTTON extender init. **/
pcf8574_init_config.p0_gpio_work_mode = true; pcf8574_init_config.p0_gpio_work_mode = true;
pcf8574_init_config.p1_gpio_work_mode = true; pcf8574_init_config.p1_gpio_work_mode = true;
pcf8574_init_config.p2_gpio_work_mode = true; pcf8574_init_config.p2_gpio_work_mode = true;
@@ -140,7 +140,7 @@ void system_setup_task(void *pvParameters)
zh_avr_160x_print_char(&lcd_handle, "%"); zh_avr_160x_print_char(&lcd_handle, "%");
vTaskDelay(50 / portTICK_PERIOD_MS); vTaskDelay(50 / portTICK_PERIOD_MS);
} }
//** Initial LCD text init. **/ //** LCD default text print. **/
zh_avr_160x_lcd_clear(&lcd_handle); zh_avr_160x_lcd_clear(&lcd_handle);
zh_avr_160x_set_cursor(&lcd_handle, 0, 0); zh_avr_160x_set_cursor(&lcd_handle, 0, 0);
zh_avr_160x_print_char(&lcd_handle, pgm_read_ptr(text_ac_power)); zh_avr_160x_print_char(&lcd_handle, pgm_read_ptr(text_ac_power));