forked from esophagoose/gt911-micropython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgt911_constants.py
135 lines (131 loc) · 3 KB
/
gt911_constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
class Addr:
ADDR1 = 0x5D
ADDR2 = 0x14
ROTATION_LEFT = 0
ROTATION_INVERTED = 1
ROTATION_RIGHT = 2
ROTATION_NORMAL = 3
# Real-time command (Write only)
COMMAND = 0x8040
ESD_CHECK = 0x8041
COMMAND_CHECK = 0x8046
# Configuration information (R/W)
CONFIG_START = 0x8047
CONFIG_VERSION = 0x8047
X_OUTPUT_MAX_LOW = 0x8048
X_OUTPUT_MAX_HIGH = 0x8049
Y_OUTPUT_MAX_LOW = 0x804A
Y_OUTPUT_MAX_HIGH = 0x804B
TOUCH_NUMBER = 0x804C
MODULE_SWITCH_1 = 0x804D
MODULE_SWITCH_2 = 0x804E
SHAKE_COUNT = 0x804F
FILTER = 0x8050
LARGE_TOUCH = 0x8051
NOISE_REDUCTION = 0x8052
SCREEN_TOUCH_LEVEL = 0x8053
SCREEN_RELEASE_LEVEL = 0x8054
LOW_POWER_CONTROL = 0x8055
REFRESH_RATE = 0x8056
X_THRESHOLD = 0x8057
Y_THRESHOLD = 0x8058
X_SPEED_LIMIT = 0x8059 # Reserve
Y_SPEED_LIMIT = 0x805A # Reserve
SPACE_TOP_BOTTOM = 0x805B
SPACE_LEFT_RIGHT = 0x805C
MINI_FILTER = 0x805D
STRETCH_R0 = 0x805E
STRETCH_R1 = 0x805F
STRETCH_R2 = 0x8060
STRETCH_RM = 0x8061
DRV_GROUPA_NUM = 0x8062
DRV_GROUPB_NUM = 0x8063
SENSOR_NUM = 0x8064
FREQ_A_FACTOR = 0x8065
FREQ_B_FACTOR = 0x8066
PANEL_BIT_FREQ_L = 0x8067
PANEL_BIT_FREQ_H = 0x8068
PANEL_SENSOR_TIME_L = 0x8069 # Reserve
PANEL_SENSOR_TIME_H = 0x806A
PANEL_TX_GAIN = 0x806B
PANEL_RX_GAIN = 0x806C
PANEL_DUMP_SHIFT = 0x806D
DRV_FRAME_CONTROL = 0x806E
CHARGING_LEVEL_UP = 0x806F
MODULE_SWITCH3 = 0x8070
GESTURE_DIS = 0x8071
GESTURE_LONG_PRESS_TIME = 0x8072
X_Y_SLOPE_ADJUST = 0x8073
GESTURE_CONTROL = 0x8074
GESTURE_SWITCH1 = 0x8075
GESTURE_SWITCH2 = 0x8076
GESTURE_REFRESH_RATE = 0x8077
GESTURE_TOUCH_LEVEL = 0x8078
NEWGREENWAKEUPLEVEL = 0x8079
FREQ_HOPPING_START = 0x807A
FREQ_HOPPING_END = 0x807B
NOISE_DETECT_TIMES = 0x807C
HOPPING_FLAG = 0x807D
HOPPING_THRESHOLD = 0x807E
NOISE_THRESHOLD = 0x807F # Reserve
NOISE_MIN_THRESHOLD = 0x8080
HOPPING_SENSOR_GROUP = 0x8082
HOPPING_SEG1_NORMALIZE = 0x8083
HOPPING_SEG1_FACTOR = 0x8084
MAIN_CLOCK_AJDUST = 0x8085
HOPPING_SEG2_NORMALIZE = 0x8086
HOPPING_SEG2_FACTOR = 0x8087
HOPPING_SEG3_NORMALIZE = 0x8089
HOPPING_SEG3_FACTOR = 0x808A
HOPPING_SEG4_NORMALIZE = 0x808C
HOPPING_SEG4_FACTOR = 0x808D
HOPPING_SEG5_NORMALIZE = 0x808F
HOPPING_SEG5_FACTOR = 0x8090
HOPPING_SEG6_NORMALIZE = 0x8092
KEY_1 = 0x8093
KEY_2 = 0x8094
KEY_3 = 0x8095
KEY_4 = 0x8096
KEY_AREA = 0x8097
KEY_TOUCH_LEVEL = 0x8098
KEY_LEAVE_LEVEL = 0x8099
KEY_SENS_1_2 = 0x809A
KEY_SENS_3_4 = 0x809B
KEY_RESTRAIN = 0x809C
KEY_RESTRAIN_TIME = 0x809D
GESTURE_LARGE_TOUCH = 0x809E
HOTKNOT_NOISE_MAP = 0x80A1
LINK_THRESHOLD = 0x80A2
PXY_THRESHOLD = 0x80A3
GHOT_DUMP_SHIFT = 0x80A4
GHOT_RX_GAIN = 0x80A5
FREQ_GAIN0 = 0x80A6
FREQ_GAIN1 = 0x80A7
FREQ_GAIN2 = 0x80A8
FREQ_GAIN3 = 0x80A9
COMBINE_DIS = 0x80B3
SPLIT_SET = 0x80B4
SENSOR_CH0 = 0x80B7
DRIVER_CH0 = 0x80D5
CONFIG_CHKSUM = 0x80FF
CONFIG_FRESH = 0x8100
CONFIG_SIZE = 0xFF - 0x46
# Coordinate information
PRODUCT_ID = 0x8140
FIRMWARE_VERSION = 0x8140
RESOLUTION = 0x8140
VENDOR_ID = 0x8140
IMFORMATION = 0x8140
POINT_INFO = 0x814E
POINT_1 = 0x814F
POINT_2 = 0x8157
POINT_3 = 0x815F
POINT_4 = 0x8167
POINT_5 = 0x816F
POINTS_REG = [
POINT_1,
POINT_2,
POINT_3,
POINT_4,
POINT_5,
]