PCF8574 backpack on SDA=GPIO22/SCL=GPIO27, demo/hello/clear/backlight UI, and flashable firmware/cyd package. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
569 B
C
25 lines
569 B
C
#pragma once
|
||
|
||
// CYD ESP32-2432S028R — 触控/屏脚与 tftest 一致
|
||
// LCD1602A + I2C 转接板(PCF8574):SDA=GPIO22,SCL=GPIO27
|
||
// 常见地址 0x27 / 0x3F(上电扫描)
|
||
|
||
#define TFT_BL_PIN 21
|
||
|
||
#define CYD_TOUCH_IRQ 36
|
||
#define CYD_TOUCH_MOSI 32
|
||
#define CYD_TOUCH_MISO 39
|
||
#define CYD_TOUCH_CLK 25
|
||
#define CYD_TOUCH_CS 33
|
||
|
||
#define LCD_I2C_SDA_PIN 22
|
||
#define LCD_I2C_SCL_PIN 27
|
||
#define LCD_I2C_FREQ_HZ 100000
|
||
#define LCD_COLS 16
|
||
#define LCD_ROWS 2
|
||
|
||
#define SCREEN_WIDTH 240
|
||
#define SCREEN_HEIGHT 320
|
||
#define UI_HOR_RES 320
|
||
#define UI_VER_RES 240
|