ESP32 S2 TFT graphics

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
csierra67
 
Posts: 7
Joined: Tue Feb 28, 2023 11:28 am

ESP32 S2 TFT graphics

Post by csierra67 »

Hello there,

I have run the four demonstration programs successfully and I am now trying to use the screen to display lines, rectangles, triangles.. I did not find a demonstration program on the site.
The device using a 1.14 " IPS screen with 240x135 I thought that I could use the demonstration bundle for this product. However this not successful. My screen displayed code.py out:
How I an solve this ? Thanks

csierra67

User avatar
bidrohini1
 
Posts: 100
Joined: Sun Mar 19, 2023 11:48 am

Re: ESP32 S2 TFT graphics

Post by bidrohini1 »

Hi, which product exactly are you using? This one? https://learn.adafruit.com/adafruit-esp ... r/overview

User avatar
csierra67
 
Posts: 7
Joined: Tue Feb 28, 2023 11:28 am

Re: ESP32 S2 TFT graphics

Post by csierra67 »

This one

https://learn.adafruit.com/adafruit-esp ... ft-feather

As the display is directly connected to the MCU, I wonder if the graphics library is already in the UF2 file for the device or if it needs to be loaded.. I guess Adadruit 7789..
If so, do I need to change the connections settings in the program.. CS MISO MOSI SCK...

Thanks for any clarification

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 S2 TFT graphics

Post by adafruit_support_carter »

The UF2 is a precompiled Arduino sketch. So, yes, it includes the graphics library code, as well as everything else.

For working up your own graphic sketches, you'll use the GFX library. There's example code here that shows lines, rectangles, etc:
https://learn.adafruit.com/adafruit-esp ... ilt-in-tft

User avatar
csierra67
 
Posts: 7
Joined: Tue Feb 28, 2023 11:28 am

Re: ESP32 S2 TFT graphics

Post by csierra67 »

Thanks for your replay.. Actually these pages cover the usage of the device with C/C++ and I have seen similar examples under this environment.

However I would like to program the product with Circuit Python.
I there an Circuit Python example that I could use for the start.

Thanks a lot.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 S2 TFT graphics

Post by adafruit_support_carter »

Ah, OK, the UF2 is Arduino, so linked to that first.

For CircuitPython, start here:
https://learn.adafruit.com/circuitpytho ... troduction

NOTE - CircuitPython has a conceptually different approach to graphics than simple line, triangle, etc. primitives.

User avatar
csierra67
 
Posts: 7
Joined: Tue Feb 28, 2023 11:28 am

Re: ESP32 S2 TFT graphics

Post by csierra67 »

I had a quick look and indeed these pages should answer my questions. Will try.
Thanks !

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

Return to “Feather - Adafruit's lightweight platform”