Closed marcmerlin closed 5 years ago
Hi, please try using the latest Adafruit _GFX library. The one included with Teensyduino is an older library.
whoops, you are correct. Why would the arduino env pick the ILI lib from you and the old Adafruit::GFX lib from teensyduino which was much older (I had both) while happily taking the latest Adafruit_ILI9341 from the same stock arduino/libraries directory? I deleted the teensyduino copy to stop it from getting one lib in one place and the other lib in the other place, and now things work again. My apologies for missing that and wasting your time.
It’s no problem. You aren’t the first to run into this issue.
@PaulStoffregen please remove or update Adafruit_GFX from the teensyduino installer
I have graphicstest working fine on ESP32. I also have teensy 3.6 working fine with the same TFT using ILI9341_t3, but I'd rather not use it as it's a different and somewhat incompatible API.
I did init with Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO); which uses software SPI and works fine on ESP32. With teensy 3.6 (arduino 1.8.8 + teensyduino-1.45), I get:
If I comment out this constructor line I'm not using in your library, I get:
If I switch to the ILI9341 library shipped with in teensyduino, things work ( /var/local/arduino-1.8.8-teensyduino-1.45/hardware/teensy/avr/libraries/Adafruit_ILI9341 ) Looks like your recent changes made it incompatible with teensy?
The teensy version works, but it's too old, and doesn't work with my code because it doesn't use/inherit from your new SPITFT lib.