Touch Display Wemos R32(ESP32) #1368
Unanswered
hadypranoto
asked this question in
Q&A - Touch
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Bodmer,
I was tried to make display using ili9341 (Parallel version) ini Wemos R32(ESP32), for displaying don't have problem, but when i activate touch pin, library said
In file included from C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:4973:0:
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp: In member function 'void TFT_eSPI::begin_touch_read_write()':
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp:22:34: error: 'spi' was not declared in this scope
if (locked) {locked = false; spi.beginTransaction(SPISettings(SPI_TOUCH_FREQUENCY, MSBFIRST, SPI_MODE0));}
^
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp: In member function 'void TFT_eSPI::end_touch_read_write()':
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp:37:54: error: 'spi' was not declared in this scope
if(!inTransaction) {if (!locked) {locked = true; spi.endTransaction();}}
^
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp: In member function 'uint8_t TFT_eSPI::getTouchRaw(uint16_t*, uint16_t*)':
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp:61:3: error: 'spi' was not declared in this scope
spi.transfer(0xd0); // Start new YP conversion
^
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp: In member function 'uint16_t TFT_eSPI::getTouchRawZ()':
C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master\Extensions/Touch.cpp:104:3: error: 'spi' was not declared in this scope
spi.transfer(0xb0); // Start new Z1 conversion
^
Using library SPI at version 1.0 in folder: C:\Users\hadypranoto\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\SPI
Using library TFT_eSPI-master at version 2.3.70 in folder: C:\Users\hadypranoto\Documents\Arduino\libraries\TFT_eSPI-master
Using library FS at version 1.0 in folder: C:\Users\hadypranoto\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\FS
Using library SPIFFS at version 1.0 in folder: C:\Users\hadypranoto\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\SPIFFS
exit status 1
Error compiling for board ESP32 Dev Module.
I'm use pin setting your suggested, while i run your sample code, got above error
im also, was installed this library
https://github.com/s60sc/Adafruit_TouchScreen
im also was wire modified as your suggested
help me, im so frustrated to activated the touchscreen function
can you help me step-by-step tutorial to make touchscreen available and run correctly,
Thanks in advanced
Hady
Beta Was this translation helpful? Give feedback.
All reactions