最近在研究正点原子的4.3寸电容触摸屏,驱动芯片是gt9147,修改了一下配置参数保存到了驱动芯片的flash中,结果发现竖屏的y轴坐标反了,即触摸屏幕左上角,得出的坐标为左下角,而且上下方有30个像素点的空白区触摸不到,估计是例程给的配置参数(那184个字节的数组)中的驱动通道没配置对,尝试调了几次也没法成功将触摸的位置与坐标对应上,希望有好心人能从工作正常的gt9147芯片中读出正确的配置参数然后发给我,也希望大家能给点解决方案,谢谢大家了。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
{
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,
}
再次谢谢大家的帮忙
const u8 GT9147_CFG_TBL[]=
{
0X60,0XE0,0X01,0X20,0X03,0X05,0X35,0X00,0X02,0X08,
0X1E,0X08,0X50,0X3C,0X0F,0X05,0X00,0X00,0XFF,0X67,
0X50,0X00,0X00,0X18,0X1A,0X1E,0X14,0X89,0X28,0X0A,
0X30,0X2E,0XBB,0X0A,0X03,0X00,0X00,0X02,0X33,0X1D,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X32,0X00,0X00,
0X2A,0X1C,0X5A,0X94,0XC5,0X02,0X07,0X00,0X00,0X00,
0XB5,0X1F,0X00,0X90,0X28,0X00,0X77,0X32,0X00,0X62,
0X3F,0X00,0X52,0X50,0X00,0X52,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X0F,
0X0F,0X03,0X06,0X10,0X42,0XF8,0X0F,0X14,0X00,0X00,
0X00,0X00,0X1A,0X18,0X16,0X14,0X12,0X10,0X0E,0X0C,
0X0A,0X08,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0X00,0X29,0X28,0X24,0X22,0X20,0X1F,0X1E,0X1D,
0X0E,0X0C,0X0A,0X08,0X06,0X05,0X04,0X02,0X00,0XFF,
0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,0X00,
0X00,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,0XFF,
0XFF,0XFF,0XFF,0XFF,
};
一周热门 更多>