2 Commits

Author SHA1 Message Date
f1ce1febc8 doc: update some comments for doxygen style 2025-11-30 22:58:05 +03:00
72e80282a9 fix: pulse duration 2025-11-30 22:37:52 +03:00
3 changed files with 9 additions and 5 deletions

View File

@@ -1,9 +1,13 @@
/**
* @file zh_160x_i2c.h
*/
#pragma once
#include "zh_pcf8574.h"
#define ZH_LCD_16X2 1
#define ZH_LCD_16X4 0
#define ZH_LCD_16X2 1 /*!< LCD size 16x2. */
#define ZH_LCD_16X4 0 /*!< LCD size 16x3. */
#ifdef __cplusplus
extern "C"

View File

@@ -1 +1 @@
3.0.0
3.0.1

View File

@@ -22,9 +22,9 @@ static const char *TAG = "zh_160x_i2c";
#define LCD_160X_PULSE \
zh_pcf8574_write_gpio(handle, 2, true); \
esp_delay_us(300); \
esp_delay_us(500); \
zh_pcf8574_write_gpio(handle, 2, false); \
esp_delay_us(400);
esp_delay_us(500);
static void _zh_160x_lcd_init(zh_pcf8574_handle_t *handle);
static void _zh_160x_send_command(zh_pcf8574_handle_t *handle, uint8_t command);