mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-07 06:34:44 +02:00
Allow more settle time for raw values read from touch controller
This commit is contained in:
@@ -22,8 +22,13 @@ uint8_t TFT_eSPI::getTouchRaw(uint16_t *x, uint16_t *y){
|
|||||||
|
|
||||||
T_CS_L;
|
T_CS_L;
|
||||||
|
|
||||||
|
// Dummy transfer
|
||||||
|
SPI.transfer(0xd0);
|
||||||
|
SPI.transfer(0);
|
||||||
|
SPI.transfer(0);
|
||||||
|
|
||||||
// Start bit + YP sample request for x position
|
// Start bit + YP sample request for x position
|
||||||
tmp = SPI.transfer(0xd0);
|
SPI.transfer(0xd0);
|
||||||
tmp = SPI.transfer(0);
|
tmp = SPI.transfer(0);
|
||||||
tmp = tmp <<5;
|
tmp = tmp <<5;
|
||||||
tmp |= 0x1f & (SPI.transfer(0)>>3);
|
tmp |= 0x1f & (SPI.transfer(0)>>3);
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TFT_eSPI",
|
"name": "TFT_eSPI",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789",
|
"keywords": "tft, ePaper, display, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789",
|
||||||
"description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32",
|
"description": "A TFT and ePaper SPI graphics library for ESP8266 and ESP32",
|
||||||
"repository":
|
"repository":
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=TFT_eSPI
|
name=TFT_eSPI
|
||||||
version=1.0.0
|
version=1.0.1
|
||||||
author=Bodmer
|
author=Bodmer
|
||||||
maintainer=Bodmer
|
maintainer=Bodmer
|
||||||
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE
|
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE
|
||||||
|
Reference in New Issue
Block a user