Color 320x240 TFT Touchscreen

Status
Not open for further replies.
Which purple test board?

This board mentioned in the product listing that you can order from Oshpark:

d00240b93fba420f650eb4e49f426273.png


fa9cc886e35e000fe2f3fe8615883a2b.png


While in theory, it should run (the SPI pins SCK, MOSI, and MISO are in the same positions), it may not run as fast as it could using the ILI9341_t3 library on the Teensy 4.0/4.1.

On the Teensy 3.x, there were multiple pins that would allow speeding up SPI actions using DMA in the ILI9341_t3 library. In the purple board, pin 10 is the CS pin, pin 9 is the D/C pin.

However, on the Teensy 4.0, there is only one special pin (10) that can be sped up with hardware DMA, and it needs to be on the D/C pin. AFAIK, in the t4 code in the library, it is more important to optimize the D/C pin than the CS pin.

Unfortunately, the purple board uses pin 10 for CS and 9 for D/C.

The Teensy 4.1 has two additional fast CS pins (36 and 37). I don't know if the library now supports them. Perhaps ILI9341_t3n supports it instead. One of the display experts would need to chime in.

<edit>
I just noticed that the pin for the touch input (8) is also used for the I2S microphone. Which means you might not be able to combine sound (i.e. the Audio Shield) and the display using the purple board. The Audio Shield also uses pin 10 for the SD card on the audio shield.
 
Yes, confirmed, both Teensy 4.0 and 4.1 work well with this display and the purple test board.

I tested both just now, and updated the display's page with Teensy 4 info. Here's a photo, so you can see it working with Teensy 4.1.

display_ili9341_touch2.jpg


I tested with File > Examples > XPT2046_Touchscreen > ILI9341Test, which uses the ILI9341_t3 library. As you can see, it works on Teensy 4.
 
Status
Not open for further replies.
Back
Top