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
ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mbinno
- Posts: 8
- Joined: Fri Feb 17, 2023 3:48 pm
- dastels
- Posts: 15760
- Joined: Tue Oct 20, 2015 3:22 pm
Re: ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work
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
Note that D1 & D2 work a bit differently that usual. See https://learn.adafruit.com/esp32-s3-rev ... ns-3138958
Dave
- mbinno
- Posts: 8
- Joined: Fri Feb 17, 2023 3:48 pm
Re: ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work
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
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
- dastels
- Posts: 15760
- Joined: Tue Oct 20, 2015 3:22 pm
Re: ESP32-S2 Reverse TFT Feather Button D1/D2 doesn't work
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
Dave
Please be positive and constructive with your questions and comments.