TFT_eSPI with Adafruit 1.3" 240x240 Wide Angle TFT LCD?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
leafon
 
Posts: 32
Joined: Thu Sep 22, 2022 12:40 am

TFT_eSPI with Adafruit 1.3" 240x240 Wide Angle TFT LCD?

Post by leafon »

Hi,

I'm using the Adafruit QT Py - SAMD21 with the Adafruit 1.3" 240x240 Wide Angle TFT LCD.
The code development is done with Platform IO. Using the Adafruit_ST7789 and Adafruit_GFX libraries, I'm able to display letters on the LCD.

Has anyone gotten the TFT_eSPI library to work with Adafruit QT Py - SAMD21 with the Adafruit 1.3" 240x240 Wide Angle TFT LCD in Platform IO? I'm getting bunch of compiling errors simply by adding the library.

Alternatively, is it possible to display an image from a header file using the Adafruit_ST7789 and Adafruit_GFX libraries? Similar to what this example is showing: https://www.hackster.io/usini/display-i ... een-fbb0d7

User avatar
mikeysklar
 
Posts: 13945
Joined: Mon Aug 01, 2016 8:10 pm

Re: TFT_eSPI with Adafruit 1.3" 240x240 Wide Angle TFT LCD?

Post by mikeysklar »

Can you run the graphictest example on the display with the Arduino IDE? That way we can confirm the stock setup Adafruit tests with is working for you.

https://github.com/adafruit/Adafruit-ST ... cstest.ino

User avatar
leafon
 
Posts: 32
Joined: Thu Sep 22, 2022 12:40 am

Re: TFT_eSPI with Adafruit 1.3" 240x240 Wide Angle TFT LCD?

Post by leafon »

Hi Mikey,

I'm not using the Arduino IDE. I'm using VS Code with PlatformIO.

User avatar
leafon
 
Posts: 32
Joined: Thu Sep 22, 2022 12:40 am

Re: TFT_eSPI with Adafruit 1.3" 240x240 Wide Angle TFT LCD?

Post by leafon »

I got it working using the drawRGBBitmap function in Adafruit_GFX instead of the pushImage function in TFT_eSPI.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”