Adafruit Metro ESP32-S2 and Adafruit Metro ESP32-M4 Airlift Lite with 4" TFT Touch Screen SPI (ILI9486 - 480x320 WaveShare) #2351
Replies: 4 comments 3 replies
-
The lines in question are these: // For ESP32-S2 Metro board (only tested with ILI9486 display) #define TFT_MISO 21 |
Beta Was this translation helpful? Give feedback.
-
The GPIO pin numbers should be used for the setup file and I see you have done this. There are a couple of difficulties with this board combination however with the correct allocations it should work (see below). Also note that the TFT shield is fitted with a set of chips that create a serial to parallel conversion. This interface arrangement is used in RPi type displays. Assuming that this interface circuit does what I expect then adding the following line to the setup file will invoke the correct interface code in the TFT_eSPI library: #define RPI_DISPLAY_TYPE With that interface design you may need to limit the SPI speed, speeds in the range 10MHz to 20MHz should work. You may find you can go higher in speed. The Arduino board package for the ESP32-S2 does not map the SPI port to GPIO pins 21, 16 and 42 so that will not work. (This is an incompatibility in the UNO format of that Metro board. Instead you must use the signals routed through the 6 pin ICSP port. Then use those GPIO numbers for the SPI pins. The TFT has a DIP switch to link the SPI signals to the ISCP port, it looks like these are in the right prosition but you will need to check the boards documentation. It looks like this would be correct for the TFT_eSPI setup file allocation to the SPI pins: #define TFT_MISO 37 |
Beta Was this translation helpful? Give feedback.
-
Just today I got the Adafruit Metro ESP32-M4 AirLift Lite board. The pinout is in the figure. Thank you. |
Beta Was this translation helpful? Give feedback.
-
For the same 480x320 WaveShare (SPI) display and an AZ-Delivery ESP32 Dev KitC V2 card, what is the suitable setup and what pin assignment, which on the card have names and not numbers? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I made the settings in "Setup_Select.h" using the library "TFT_eSPI-master" and Arduino IDE 2.0.3.
The file is attached in PDF format.
Basically, only the arrangement of the pins relating to the display has been added to adapt them to the board by referring to the number of pins shown on the board itself (see attached figures - board and dfisplay).
Compiling some examples did not give rise to errors. Not even loading into the tab. But nothing works.
I'm not sure about the pin assignment in "Setup_Select.h".
This is because it is not clear whether the pins have the numbers referring to the board in question or referring to the Arduino UNO R3 pinout.
Any solution? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions