更新gt911固件

This commit is contained in:
wen
2025-10-30 15:07:40 +08:00
parent 846d8045b3
commit 43c799919d
49 changed files with 52 additions and 21 deletions

View File

@@ -23,22 +23,22 @@ static struct rt_i2c_client gt911_client;
/* hardware section */
static rt_uint8_t GT911_CFG_TBL[] = {
0x62,0xE0,0x01,0xE0,0x01,0x01,0xF5,0x00,0x01,0xC8,0x28,0x0F,
0x50,0x3C,0x03,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x16,
0x18,0x1E,0x14,0x85,0x25,0x0A,0x9B,0x9D,0x7C,0x06,0x00,0x00,
0x00,0x00,0x01,0x2D,0x00,0x01,0x00,0x00,0x00,0x03,0x64,0x32,
0x00,0x00,0x00,0x50,0x7D,0x94,0xC5,0x02,0x07,0x00,0x00,0x04,
0x99,0x53,0x00,0x8D,0x5B,0x00,0x82,0x64,0x00,0x77,0x6D,0x00,
0x6E,0x77,0x00,0x6E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x6C,0xE0,0x01,0xE0,0x01,0x05,0xF5,0x00,0x22,0x0F,0x28,0x0F,
0x5A,0x3C,0x03,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x18,
0x1A,0x1E,0x14,0x85,0x25,0x0A,0xC8,0xCA,0xB5,0x06,0x00,0x00,
0x01,0x22,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x03,0x64,0x32,
0x00,0x00,0x00,0xAA,0xE6,0xDE,0xC5,0x02,0x07,0x00,0x00,0x04,
0x8D,0xAF,0x00,0x86,0xBA,0x00,0x81,0xC5,0x00,0x7B,0xD2,0x00,
0x76,0xDF,0x00,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,0x10,
0x12,0x14,0x16,0x18,0x1A,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x06,
0x12,0x14,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x08,0x06,
0x04,0x02,0x00,0x1D,0x1E,0x1F,0x20,0x21,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x27,0x01
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0x96,0x01,
};
static rt_err_t gt911_write_reg(struct rt_i2c_client *dev, rt_uint8_t *data,
@@ -362,7 +362,7 @@ static rt_err_t gt911_control(struct rt_touch_device *touch, int cmd, void *arg)
gt911_get_config_version(&gt911_client, &regver, 1);
LOG_I("Config version:%d",regver);
if(regver<98)
if(regver!=0x6C)
{
LOG_I("update touch config");