TFT_eSPI library mentions this:
// The ESP32 has 2 free SPI ports i.e. VSPI and HSPI, the VSPI is the default.
// If the VSPI port is in use and pins are not accessible (e.g. TTGO T-Beam)
// then uncomment the following line:
//#define USE_HSPI_PORT
Each SPI bus can handle up to three devices so I would like to put: "ili 9488" "Touch controller" and "SD Card" in one bus and the MPC23s17 on the second.
There are some ways to use both SPI ports on ESP32, here there is one:
I am wondering how much effort will require to achieve this. Also there is an I2C version of the MCP which might be hips easier to implement.
With the ESP32 the TFT_eSPI library can be configured to use either the HDPI port or the VSPI port.
The TFT_eSPI library has a built in touch controller for the XPT2046 type driver, in this case the touch controller must be on the same port as the TFT but different pins must be used for the two chip selects.
SPI ports can have many devices connected. TFT_eSPI controlls the chip select lines in the software so this means the hardware controlled chip select pin limit is not a limiting factor.
I'm trying all the available library with Rpi display ili 9488 and touch XPT2046.with stm32 bluebill,Arduino ide.
When I use both touch and display then both goes very slow l refreshing like 2,3 seconds.
Very unusable result.
If used without touch,no problem.very fast
If used only touch,no problem,very vast .
SPI with touch is not usable on Rpi ili 9488.not sure about smaller display.
they share same clk,miso,mosi.I think its slow because of that.
Therefore,now I'm going to do some tests With Parallel 16 bit display .
Mode30: have you tried disconnecting the TFT SDO/MISO connection? Some ILI9488 don’t tristate MISO properly and can conflict with the touch controller’s SPI transactions.
Best regards Bodmer, David and everyone!
Has any adaptation of the example 'TFT_Clock' (Analog) from the excellent library 'TFT_ILI9341_ESP' (your Bodmer!) Been made to a Display 3.5 Breakout SPI ILI9488 (NOT Shield!) With ESP8266 or ESP32 with the TFT_eSPI library?
I would very much like to make this Clock (TFT_Clock) with the Display mentioned but I am not knowledgeable enough in Arduino programming to adapt the sketch for this Display.
Or, if anyone here has done something similar or has any Display Clock mentioned, if you want and can, by kindness, share here, I would be very grateful!
The sketch, the Display and a Clock Engraving are attached;
Thank you all