ESP32-S2-TFT no display

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.
User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

ESP32-S2-TFT no display

Post by jkcbwpnet »

The demo works. (wish I had source code)

I loaded adafruit-circuitpython-adafruit_feather_esp32s2_tft-en_US-7.2.5.uf2
I never saw any console output or REPL on the display and I can see it has backlighting.

The double reset button action shows a Feather TFT splash screen every time that is used.

Code: Select all

import board
import terminalio
from adafruit_display_text import bitmap_label

text = "Hello, World!"
scale = 3

text_area = bitmap_label.Label(terminalio.FONT, text=text, scale=scale)
text_area.x = 10
text_area.y = 10
board.DISPLAY.show(text_area)
shows nothing. Other things show nothing.

Reloading adafruit-esp32-s2-tft-feather-factory-reset.UF2
gets the demo back and it works.

Reloading adafruit-circuitpython-adafruit_feather_esp32s2_tft-en_US-7.2.5.uf2
same issues. (I noticed all of the python files are still there. That is nice.)

Where my display at?

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

I also tried adafruit-circuitpython-adafruit_feather_esp32s2_tft-en_US-7.2.4.uf2
same thing...

User avatar
freddyboomboom
 
Posts: 267
Joined: Wed Feb 16, 2022 7:55 pm

Re: ESP32-S2-TFT no display

Post by freddyboomboom »

Your code works on mine with 7.2.5.

Code: Select all

Adafruit CircuitPython 7.2.5 on 2022-04-06; Adafruit Feather ESP32-S2 TFT with ESP32S2
>>> %Run -c $EDITOR_CONTENT
>>> 

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

Re: ESP32-S2-TFT no display

Post by adafruit_support_carter »

Couple of things to check.

Are you saving your code as code.py in the CIRCUITPY folder?

Also, try adding a parking loop at the end of the code.

Code: Select all

while True:
    pass
Otherwise the code will exit and pin state can get reset and cause the display to potentially do something else.

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

yes it is def code.py
All the other code does it's stuff.
I can get data from i2c stuff and wifi

everything so far I have figured out except display. It works through the Arduino IDE. I have a pyPortal Titano and other things. I am not new to this.
It is like a problem in front of me that must be obvious and everyone says it's right there, but I can't see it.

It is definitely not hardware. The demo works and the bootloader splash screen works and display works in the Arduino IDE...

I added the parking loop, but to no avail.

Code: Select all

import board
import terminalio
from adafruit_display_text import bitmap_label

text = "Hello, World!"
scale = 3

text_area = bitmap_label.Label(terminalio.FONT, text=text, scale=scale)
text_area.x = 10
text_area.y = 10
board.DISPLAY.show(text_area)
    
while True:
    pass
I don't understand. What else can I try what pictures or video or whatever can I do to help you help me?

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

is it the i2c power pin that is supposed to do it automatically in python, but I had to specify it in the Arduino code? That would affect the backlight though right? I can see it has it.

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

So even though I have not proceeded further in python, I have been working on the Arduino IDE and I have gotten to a good place. Tomorrow I add the Adafruit IO and research locale storage. I also see a certain page with the factory demo.

https://learn.adafruit.com/adafruit-esp ... ipped-demo

Thank you so much. I should have something nice in the next two days.

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

Re: ESP32-S2-TFT no display

Post by adafruit_support_carter »

The not working in Python seems weird. The Feather ESP32-S2 TFT does have the TFT_I2C_POWER pin which must be dealt with. This seems potentially related to that. But for CircuitPython, it should be automatic:
https://learn.adafruit.com/adafruit-esp ... -3108753-8

None of the examples here are working as shown?
https://learn.adafruit.com/adafruit-esp ... tft-basics

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

All the examples work except the output. Not smart enough with python to know what to troubleshoot. I haven't even put a .eter on the pin to verify. I think the backlight is sent through i2c right? If so it is working.
I have been spending most of my time coding with the Arduino IDE rather than troubleshooting. Since it was an option...

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

Re: ESP32-S2-TFT no display

Post by adafruit_support_carter »

OK, sounds like Arduino is working. If you move back to CircuitPython, respond back here and we'll take a look. It's gotta be something simple, just not sure where/what.

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

I would like to solve it. 2 clicks on the reset and drag the UF2 over and poof...I have been going back and forth lol.

User avatar
freddyboomboom
 
Posts: 267
Joined: Wed Feb 16, 2022 7:55 pm

Re: ESP32-S2-TFT no display

Post by freddyboomboom »

Rather than reuse your same copy of code.py, try copying the code you put in this thread into a new file called something.py and see if it works.

I have had instances when there must have been a hidden character in a .py file that was causing my code to not run.

The code you pasted into this thread works perfectly on four of the ESP32-S2 TFT boards that I have, and I'm using CircuitPython 7.2.5.

Also, double check that you are using the libraries from the latest 7.2.5 build of the libraries. I do that by copying them over again.

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

Re: ESP32-S2-TFT no display

Post by adafruit_support_carter »

Yah, try removing code.py. That way the CircuitPython firmware will just drop into REPL - which you should see on the screen.

Can also make code.py be:

Code: Select all

print("hello")
Do you know how to access the REPL? If so, might also be worth trying a file system erase:
https://learn.adafruit.com/welcome-to-c ... 2987288-34

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

Ok I ran the storage erase. still no display. This is the weirdest thing to me. I shot 3 videos.

User avatar
jkcbwpnet
 
Posts: 92
Joined: Wed Aug 10, 2011 1:37 pm

Re: ESP32-S2-TFT no display

Post by jkcbwpnet »

https://youtube.com/playlist?list=PLK8I ... tKRX7lIDTh
I just made a youtube playlist. Not sure what the preferred method of video sharing here is.

Should I take this to Discord?

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

Return to “Feather - Adafruit's lightweight platform”