LCDGFX LCD display driver  1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI

XPT2046 control byte definitions. More...

Variables

constexpr uint8_t CMD_X = 0xD3
 1 101 0 0 11 - read X (differential, 12-bit)
 
constexpr uint8_t CMD_Y = 0x93
 1 001 0 0 11 - read Y
 
constexpr uint8_t CMD_Z1 = 0xB3
 1 011 0 0 11 - read Z1
 
constexpr uint8_t CMD_Z2 = 0xC3
 1 100 0 0 11 - read Z2
 

Detailed Description

XPT2046 control byte definitions.

Bit layout (MSB first): S A2 A1 A0 MODE SER/DFR PD1 PD0

  • S = 1 (start bit)
  • A2..A0 = channel (X=5, Y=1, Z1=3, Z2=4)
  • MODE = 0 (12-bit)
  • SER/DFR = 0 (differential)
  • PD1..PD0 = 1 1 (PENIRQ disabled, internal ref off, ADC on between samples)