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
ESP32 S2 TFT graphics
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- bidrohini1
- Posts: 125
- Joined: Sun Mar 19, 2023 11:48 am
Re: ESP32 S2 TFT graphics
Hi, which product exactly are you using? This one? https://learn.adafruit.com/adafruit-esp ... r/overview
- csierra67
- Posts: 7
- Joined: Tue Feb 28, 2023 11:28 am
Re: ESP32 S2 TFT graphics
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
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
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: ESP32 S2 TFT graphics
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
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
- csierra67
- Posts: 7
- Joined: Tue Feb 28, 2023 11:28 am
Re: ESP32 S2 TFT graphics
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.
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.
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: ESP32 S2 TFT graphics
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.
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.
- csierra67
- Posts: 7
- Joined: Tue Feb 28, 2023 11:28 am
Re: ESP32 S2 TFT graphics
I had a quick look and indeed these pages should answer my questions. Will try.
Thanks !
Thanks !
Please be positive and constructive with your questions and comments.