ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work

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
mbinno
 
Posts: 8
Joined: Fri Feb 17, 2023 3:48 pm

ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work

Post by mbinno »

Hi

I get last week 4 reverse tft feather. I wrote some code and noticed that the buttons D1 and D2 doesn't work with Circuitpython. All buttons worked with the included demo code, but if I'm right it's written in Arduino. Is it possible that the button D1 and D2 only work with Arduino?

Many thanks in advance

Michael

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work

Post by dastels »

How, exactly, are they not working? Can you post the CircuitPython code in which they aren't working?

Note that D1 & D2 work a bit differently that usual. See https://learn.adafruit.com/esp32-s3-rev ... ns-3138958

Dave

User avatar
mbinno
 
Posts: 8
Joined: Fri Feb 17, 2023 3:48 pm

Re: ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work

Post by mbinno »

Hi Dave

Thanks for the hint by sharing the link. I fixed the problem by changing D1 to switch_to_input(digitalio.Pull.DOWN). Before that it was set up as Pull.UP.

Thanks!

Michael

User avatar
dastels
 
Posts: 15656
Joined: Tue Oct 20, 2015 3:22 pm

Re: ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work

Post by dastels »

Cool. You don't actually need to set them to PULL_DOWN since they already are on the board, as mentioned. You can use switch_to_input() with no argument.

Dave

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

Return to “Feather - Adafruit's lightweight platform”