Add LCD1602A I2C test with SoftSPI touch and LVGL.

PCF8574 backpack on SDA=GPIO22/SCL=GPIO27, demo/hello/clear/backlight UI, and flashable firmware/cyd package.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-23 14:25:53 +08:00
commit a4c7d54d3e
23 changed files with 2100 additions and 0 deletions

20
include/lcd.h Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <stddef.h>
#include <stdint.h>
void lcd_init();
bool lcd_ok();
uint8_t lcd_addr();
void lcd_set_backlight(bool on);
bool lcd_backlight();
void lcd_clear();
void lcd_set_line(uint8_t row, const char *text);
void lcd_get_line(uint8_t row, char *out, size_t out_len);
/** 写入两行示例文案并点亮背光 */
void lcd_demo(uint8_t index);
uint8_t lcd_demo_count();