acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

GT911Constants.h (6628B)

      1 #pragma once
      2 
      3 #define GT911_SLAVE_ADDRESS1          (0X5D)
      4 #define GT911_SLAVE_ADDRESS2          (0X14)
      5 
      6 // Real-time command (Write only)
      7 #define GT911_COMMAND                 (uint16_t)0x8040
      8 #define GT911_ESD_CHECK               (uint16_t)0x8041
      9 #define GT911_COMMAND_CHECK           (uint16_t)0x8046
     10 
     11 // Configuration information (R/W)
     12 #define GT911_CONFIG_START            (uint16_t)0x8047
     13 #define GT911_CONFIG_VERSION          (uint16_t)0x8047
     14 #define GT911_X_OUTPUT_MAX_LOW        (uint16_t)0x8048
     15 #define GT911_X_OUTPUT_MAX_HIGH       (uint16_t)0x8049
     16 #define GT911_Y_OUTPUT_MAX_LOW        (uint16_t)0x804A
     17 #define GT911_Y_OUTPUT_MAX_HIGH       (uint16_t)0x804B
     18 #define GT911_TOUCH_NUMBER            (uint16_t)0x804C
     19 #define GT911_MODULE_SWITCH_1         (uint16_t)0x804D
     20 #define GT911_MODULE_SWITCH_2         (uint16_t)0x804E
     21 #define GT911_SHAKE_COUNT             (uint16_t)0x804F
     22 #define GT911_FILTER                  (uint16_t)0x8050
     23 #define GT911_LARGE_TOUCH             (uint16_t)0x8051
     24 #define GT911_NOISE_REDUCTION         (uint16_t)0x8052
     25 #define GT911_SCREEN_TOUCH_LEVEL      (uint16_t)0x8053
     26 #define GT911_SCREEN_RELEASE_LEVEL    (uint16_t)0x8054
     27 #define GT911_LOW_POWER_CONTROL       (uint16_t)0x8055
     28 #define GT911_REFRESH_RATE            (uint16_t)0x8056
     29 #define GT911_X_THRESHOLD             (uint16_t)0x8057
     30 #define GT911_Y_THRESHOLD             (uint16_t)0x8058
     31 #define GT911_X_SPEED_LIMIT           (uint16_t)0x8059 // Reserve
     32 #define GT911_Y_SPEED_LIMIT           (uint16_t)0x805A // Reserve
     33 #define GT911_SPACE_TOP_BOTTOM        (uint16_t)0x805B
     34 #define GT911_SPACE_LEFT_RIGHT        (uint16_t)0x805C
     35 #define GT911_MINI_FILTER             (uint16_t)0x805D
     36 #define GT911_STRETCH_R0              (uint16_t)0x805E
     37 #define GT911_STRETCH_R1              (uint16_t)0x805F
     38 #define GT911_STRETCH_R2              (uint16_t)0x8060
     39 #define GT911_STRETCH_RM              (uint16_t)0x8061
     40 #define GT911_DRV_GROUPA_NUM          (uint16_t)0x8062
     41 #define GT911_DRV_GROUPB_NUM          (uint16_t)0x8063
     42 #define GT911_SENSOR_NUM              (uint16_t)0x8064
     43 #define GT911_FREQ_A_FACTOR           (uint16_t)0x8065
     44 #define GT911_FREQ_B_FACTOR           (uint16_t)0x8066
     45 #define GT911_PANEL_BIT_FREQ_L        (uint16_t)0x8067
     46 #define GT911_PANEL_BIT_FREQ_H        (uint16_t)0x8068
     47 #define GT911_PANEL_SENSOR_TIME_L     (uint16_t)0x8069 // Reserve
     48 #define GT911_PANEL_SENSOR_TIME_H     (uint16_t)0x806A
     49 #define GT911_PANEL_TX_GAIN           (uint16_t)0x806B
     50 #define GT911_PANEL_RX_GAIN           (uint16_t)0x806C
     51 #define GT911_PANEL_DUMP_SHIFT        (uint16_t)0x806D
     52 #define GT911_DRV_FRAME_CONTROL       (uint16_t)0x806E
     53 #define GT911_CHARGING_LEVEL_UP       (uint16_t)0x806F
     54 #define GT911_MODULE_SWITCH3          (uint16_t)0x8070
     55 #define GT911_GESTURE_DIS             (uint16_t)0X8071
     56 #define GT911_GESTURE_LONG_PRESS_TIME (uint16_t)0x8072
     57 #define GT911_X_Y_SLOPE_ADJUST        (uint16_t)0X8073
     58 #define GT911_GESTURE_CONTROL         (uint16_t)0X8074
     59 #define GT911_GESTURE_SWITCH1         (uint16_t)0X8075
     60 #define GT911_GESTURE_SWITCH2         (uint16_t)0X8076
     61 #define GT911_GESTURE_REFRESH_RATE    (uint16_t)0x8077
     62 #define GT911_GESTURE_TOUCH_LEVEL     (uint16_t)0x8078
     63 #define GT911_NEWGREENWAKEUPLEVEL     (uint16_t)0x8079
     64 #define GT911_FREQ_HOPPING_START      (uint16_t)0x807A
     65 #define GT911_FREQ_HOPPING_END        (uint16_t)0X807B
     66 #define GT911_NOISE_DETECT_TIMES      (uint16_t)0x807C
     67 #define GT911_HOPPING_FLAG            (uint16_t)0X807D
     68 #define GT911_HOPPING_THRESHOLD       (uint16_t)0X807E
     69 #define GT911_NOISE_THRESHOLD         (uint16_t)0X807F // Reserve
     70 #define GT911_NOISE_MIN_THRESHOLD     (uint16_t)0X8080
     71 #define GT911_HOPPING_SENSOR_GROUP    (uint16_t)0X8082
     72 #define GT911_HOPPING_SEG1_NORMALIZE  (uint16_t)0X8083
     73 #define GT911_HOPPING_SEG1_FACTOR     (uint16_t)0X8084
     74 #define GT911_MAIN_CLOCK_AJDUST       (uint16_t)0X8085
     75 #define GT911_HOPPING_SEG2_NORMALIZE  (uint16_t)0X8086
     76 #define GT911_HOPPING_SEG2_FACTOR     (uint16_t)0X8087
     77 #define GT911_HOPPING_SEG3_NORMALIZE  (uint16_t)0X8089
     78 #define GT911_HOPPING_SEG3_FACTOR     (uint16_t)0X808A
     79 #define GT911_HOPPING_SEG4_NORMALIZE  (uint16_t)0X808C
     80 #define GT911_HOPPING_SEG4_FACTOR     (uint16_t)0X808D
     81 #define GT911_HOPPING_SEG5_NORMALIZE  (uint16_t)0X808F
     82 #define GT911_HOPPING_SEG5_FACTOR     (uint16_t)0X8090
     83 #define GT911_HOPPING_SEG6_NORMALIZE  (uint16_t)0X8092
     84 #define GT911_KEY_1                   (uint16_t)0X8093
     85 #define GT911_KEY_2                   (uint16_t)0X8094
     86 #define GT911_KEY_3                   (uint16_t)0X8095
     87 #define GT911_KEY_4                   (uint16_t)0X8096
     88 #define GT911_KEY_AREA                (uint16_t)0X8097
     89 #define GT911_KEY_TOUCH_LEVEL         (uint16_t)0X8098
     90 #define GT911_KEY_LEAVE_LEVEL         (uint16_t)0X8099
     91 #define GT911_KEY_SENS_1_2            (uint16_t)0X809A
     92 #define GT911_KEY_SENS_3_4            (uint16_t)0X809B
     93 #define GT911_KEY_RESTRAIN            (uint16_t)0X809C
     94 #define GT911_KEY_RESTRAIN_TIME       (uint16_t)0X809D
     95 #define GT911_GESTURE_LARGE_TOUCH     (uint16_t)0X809E
     96 #define GT911_HOTKNOT_NOISE_MAP       (uint16_t)0X80A1
     97 #define GT911_LINK_THRESHOLD          (uint16_t)0X80A2
     98 #define GT911_PXY_THRESHOLD           (uint16_t)0X80A3
     99 #define GT911_GHOT_DUMP_SHIFT         (uint16_t)0X80A4
    100 #define GT911_GHOT_RX_GAIN            (uint16_t)0X80A5
    101 #define GT911_FREQ_GAIN0              (uint16_t)0X80A6
    102 #define GT911_FREQ_GAIN1              (uint16_t)0X80A7
    103 #define GT911_FREQ_GAIN2              (uint16_t)0X80A8
    104 #define GT911_FREQ_GAIN3              (uint16_t)0X80A9
    105 #define GT911_COMBINE_DIS             (uint16_t)0X80B3
    106 #define GT911_SPLIT_SET               (uint16_t)0X80B4
    107 #define GT911_SENSOR_CH0              (uint16_t)0X80B7
    108 #define GT911_DRIVER_CH0              (uint16_t)0X80D5
    109 #define GT911_CONFIG_CHKSUM           (uint16_t)0X80FF
    110 #define GT911_CONFIG_FRESH            (uint16_t)0X8100
    111 #define GT911_CONFIG_SIZE             (uint16_t)0xFF - 0x46
    112 // Coordinate information
    113 #define GT911_PRODUCT_ID              (uint16_t)0X8140
    114 #define GT911_FIRMWARE_VERSION        (uint16_t)0X8140
    115 #define GT911_RESOLUTION              (uint16_t)0X8140
    116 #define GT911_VENDOR_ID               (uint16_t)0X8140
    117 #define GT911_IMFORMATION             (uint16_t)0X8140
    118 #define GT911_POINT_INFO              (uint16_t)0X814E
    119 #define GT911_POINT_1                 (uint16_t)0X814F
    120 #define GT911_POINT_2                 (uint16_t)0X8157
    121 #define GT911_POINT_3                 (uint16_t)0X815F
    122 #define GT911_POINT_4                 (uint16_t)0X8167
    123 #define GT911_POINT_5                 (uint16_t)0X816F
    124 #define GT911_POINTS_REG        {GT911_POINT_1, GT911_POINT_2, GT911_POINT_3, GT911_POINT_4, GT911_POINT_5}