PaulStoffregen / ILI9341_t3

Optimized ILI9341 TFT Library
http://pjrc.com/store/display_ili9341.html
242 stars 95 forks source link

T4.1 has multiple Hardware CS pins on SPI object #57

Closed KurtE closed 4 years ago

KurtE commented 4 years ago

In addition to pin 10, it also has pin 36 and 37, which also map to different SPI CS index in the different settings in the TCR register.

So updated the code to know which index it is and to set the approriate values in TCR.

Requires SPI PR as well to get these pins to work as hardware CS