GT9147 触摸设置800*470分辨率

GT9147 触摸设置800*470分辨率

特别声明:这是我自己在调试我画的液晶电路图的时候调试出现的问题,采坑记录,如有不足,希望给予建议改正。
1、发现问题:调试GT9147触摸的时候,发现只能触摸到一部分区域,查阅相关资料,了解到是 GT9147的初始化程序的问题。
2、解决方法:(注:该工程移植正点原子的触摸实验修改而来)
在这里插入图片描述
3、配置文档
(1)正常的显示800470
(2)y轴反转显示800
470
(3)正常的显示480*270
/*****************************************

  •   注:配置800*480触摸芯片的参数
    
  •   正常显示
    

*****************************************/
#if 1
const u8 GT9147_CFG_TBL[]=
{
0x62,0xe0,0x01,0x20,0x03,0x05,0x34,0xc0,0x01,0x08,
0x28,0x0f,0x50,0x32,0x03,0x05,0x00,0x00,0x00,0x00,
0x00,0x00,0x06,0x16,0x16,0x1f,0x14,0x89,0x28,0x0a,
0x17,0x15,0x31,0x0d,0x00,0x00,0x08,0x22,0x04,0x11,
0x00,0x00,0x00,0x00,0x00,0x03,0x82,0x08,0x08,0x00,
0x00,0x0f,0x2c,0x94,0xc5,0x02,0x07,0x00,0x00,0x04,
0x9d,0x10,0x00,0x84,0x14,0x00,0x70,0x19,0x00,0x5f,
0x20,0x00,0x55,0x27,0x00,0x54,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,0x01,
0x00,0x00,0x1a,0x18,0x16,0x14,0x12,0x10,0x0e,0x0c,
0x0a,0x08,0x00,0x00,0x00,0x00,0x1f,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0x00,0x00,0x02,0x04,0x05,0x06,0x08,0x0a,0x0c,
0x0e,0x1d,0x1e,0x1f,0x20,0x22,0x24,0x28,0x29,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf6,
0xff,0xff,0xff,0xff,
};
#endif

/*****************************************

  •   注:配置800*480触摸芯片的参数
    
  •   y轴反向
    

/
#if 0
const u8 GT9147_CFG_TBL[]=
{
0x41,0xe0,0x01,0x10,0x01,0x05,0x0f,0x00,0x01,0x08,
0x28,0x05,0x50,0x32,0x03,0x05,0x00,0x00,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x89,0x28,0x0a,
0x17,0x15,0x31,0x0d,0x00,0x00,0x02,0x9b,0x03,0x25,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x00,0x00,
0x00,0x0f,0x94,0x94,0xc5,0x02,0x07,0x00,0x00,0x04,
0x8d,0x13,0x00,0x5c,0x1e,0x00,0x3c,0x30,0x00,0x29,
0x4c,0x00,0x1e,0x78,0x00,0x1e,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,0x08,0x0a,0x0c,0x0e,0x10,0x12,0x14,0x16,
0x18,0x1a,0x00,0x00,0x00,0x00,0x1f,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0x00,0x02,0x04,0x05,0x06,0x08,0x0a,0x0c,
0x0e,0x1d,0x1e,0x1f,0x20,0x22,0x24,0x28,0x29,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,
};
#endif
/

  •   注:配置480*270触摸芯片的参数
    

*****************************************/
#if 0
const u8 GT9147_CFG_TBL[]=
{
0x42,0x20,0x03,0xE0,0x01,0x05,0x0F,0x00,0x01,0x08,
0x28,0x05,0x50,0x32,0x03,0x05,0x00,0x00,0xFF,0xFF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x89,0x28,0x0A,
0x17,0x15,0x31,0x0D,0x00,0x00,0x02,0x9B,0x03,0x25,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x00,0x00,
0x00,0x0F,0x94,0x94,0xC5,0x02,0x07,0x00,0x00,0x04,
0x8D,0x13,0x00,0x5C,0x1E,0x00,0x3C,0x30,0x00,0x29,
0x4C,0x00,0x1E,0x78,0x00,0x1E,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,0x08,0x0A,0x0C,0x0E,0x10,0x12,0x14,0x16,
0x18,0x1A,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0x00,0x02,0x04,0x05,0x06,0x08,0x0A,0x0C,
0x0E,0x1D,0x1E,0x1F,0x20,0x22,0x24,0x28,0x29,0xFF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0x1D,0x01,
};
#endif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值