Added GT911 config as provided by Jumper (not yet correct ATM)
This commit is contained in:
@@ -22,6 +22,33 @@
|
||||
#include "tp_gt911.h"
|
||||
#include "touch.h"
|
||||
|
||||
#if defined(RADIO_T18)
|
||||
|
||||
// TODO:
|
||||
// This config has been provided by Jumper, but seems to be wrong:
|
||||
// - coordinates are inverted, and only parts of the screen is covered
|
||||
//
|
||||
const uint8_t TOUCH_GT911_Cfg[] = {
|
||||
0x42, 0xE0, 0x01, 0x20, 0x03, 0x05, 0x35, 0x10, 0x01, 0x08, 0x28, 0x0F,
|
||||
0x5A, 0x46, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x18,
|
||||
0x1A, 0x1E, 0x14, 0x87, 0x28, 0x09, 0x46, 0x48, 0xB2, 0x04, 0x00, 0x00,
|
||||
0x00, 0x3A, 0x02, 0x1C, 0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x32, 0x64, 0x94, 0xC5, 0x02, 0x00, 0x00, 0x00, 0x04,
|
||||
0xA2, 0x35, 0x00, 0x8F, 0x3D, 0x00, 0x80, 0x46, 0x00, 0x71, 0x51, 0x00,
|
||||
0x66, 0x5D, 0x00, 0x66, 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, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x1E, 0x1F,
|
||||
0x20, 0x21, 0x22, 0x24, 0x26, 0x1D, 0x0C, 0x0A, 0x08, 0x06, 0x04, 0x02,
|
||||
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0x6F, 0x01
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
//GT911 param table
|
||||
const uint8_t TOUCH_GT911_Cfg[] =
|
||||
{
|
||||
@@ -211,6 +238,8 @@ const uint8_t TOUCH_GT911_Cfg[] =
|
||||
0x00 // 0x80FE Reserved
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
uint8_t touchGT911Flag = 0;
|
||||
uint8_t touchEventOccured = 0;
|
||||
struct TouchData touchData;
|
||||
|
||||
Reference in New Issue
Block a user