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 |
FT5x06Constants.h (2807B)
1 #pragma once 2 3 #define FT3267_SLAVE_ADDRESS (0x38) 4 #define FT5x06_ADDR (0x38) 5 6 7 /** @brief FT5x06 register map and function codes */ 8 9 #define FT5x06_DEVICE_MODE ((uint8_t)0x00) 10 #define FT5x06_GESTURE_ID ((uint8_t)0x01) 11 #define FT5x06_TOUCH_POINTS ((uint8_t)0x02) 12 13 #define FT5x06_TOUCH1_EV_FLAG ((uint8_t)0x03) 14 #define FT5x06_TOUCH1_XH ((uint8_t)0x03) 15 #define FT5x06_TOUCH1_XL ((uint8_t)0x04) 16 #define FT5x06_TOUCH1_YH ((uint8_t)0x05) 17 #define FT5x06_TOUCH1_YL ((uint8_t)0x06) 18 19 #define FT5x06_TOUCH2_EV_FLAG ((uint8_t)0x09) 20 #define FT5x06_TOUCH2_XH ((uint8_t)0x09) 21 #define FT5x06_TOUCH2_XL ((uint8_t)0x0A) 22 #define FT5x06_TOUCH2_YH ((uint8_t)0x0B) 23 #define FT5x06_TOUCH2_YL ((uint8_t)0x0C) 24 25 #define FT5x06_TOUCH3_EV_FLAG ((uint8_t)0x0F) 26 #define FT5x06_TOUCH3_XH ((uint8_t)0x0F) 27 #define FT5x06_TOUCH3_XL ((uint8_t)0x10) 28 #define FT5x06_TOUCH3_YH ((uint8_t)0x11) 29 #define FT5x06_TOUCH3_YL ((uint8_t)0x12) 30 31 #define FT5x06_TOUCH4_EV_FLAG ((uint8_t)0x15) 32 #define FT5x06_TOUCH4_XH ((uint8_t)0x15) 33 #define FT5x06_TOUCH4_XL ((uint8_t)0x16) 34 #define FT5x06_TOUCH4_YH ((uint8_t)0x17) 35 #define FT5x06_TOUCH4_YL ((uint8_t)0x18) 36 37 #define FT5x06_TOUCH5_EV_FLAG ((uint8_t)0x1B) 38 #define FT5x06_TOUCH5_XH ((uint8_t)0x1B) 39 #define FT5x06_TOUCH5_XL ((uint8_t)0x1C) 40 #define FT5x06_TOUCH5_YH ((uint8_t)0x1D) 41 #define FT5x06_TOUCH5_YL ((uint8_t)0x1E) 42 43 #define FT5x06_ID_G_THGROUP ((uint8_t)0x80) 44 #define FT5x06_ID_G_THPEAK ((uint8_t)0x81) 45 #define FT5x06_ID_G_THCAL ((uint8_t)0x82) 46 #define FT5x06_ID_G_THWATER ((uint8_t)0x83) 47 #define FT5x06_ID_G_THTEMP ((uint8_t)0x84) 48 #define FT5x06_ID_G_THDIFF ((uint8_t)0x85) 49 #define FT5x06_ID_G_CTRL ((uint8_t)0x86) 50 #define FT5x06_ID_G_TIME_ENTER_MONITOR ((uint8_t)0x87) 51 #define FT5x06_ID_G_PERIODACTIVE ((uint8_t)0x88) 52 #define FT5x06_ID_G_PERIODMONITOR ((uint8_t)0x89) 53 #define FT5x06_ID_G_AUTO_CLB_MODE ((uint8_t)0xA0) 54 #define FT5x06_ID_G_LIB_VERSION_H ((uint8_t)0xA1) 55 #define FT5x06_ID_G_LIB_VERSION_L ((uint8_t)0xA2) 56 #define FT5x06_ID_G_CIPHER ((uint8_t)0xA3) 57 #define FT5x06_ID_G_MODE ((uint8_t)0xA4) 58 #define FT5x06_ID_G_PMODE ((uint8_t)0xA5) 59 #define FT5x06_ID_G_FIRMID ((uint8_t)0xA6) 60 #define FT5x06_ID_G_STATE ((uint8_t)0xA7) 61 #define FT5x06_ID_G_FT5201ID ((uint8_t)0xA8) 62 #define FT5x06_ID_G_ERR ((uint8_t)0xA9)