my code worksfor esp32 in Wokwi simulation but not in real life
I wrote a code that will take input from a push button after that it will delay for 2 seconds and start the relay for 3 milliseconds then it will stay off. so my code works fine in wokwi simulator but whenever I tried uploding the code on esp32. code successfully uploads but it dose not works as i wanted . when I press the push button nothing happaned. I press many times still nothing happened .
then I pressed for long time the relay start but when I relese the button relay stops . bi tried many things like changing the code a bit wiring the relay to different GPIO that still not helped me
i need serious help! [ my esp32 and relay module are perfectly fine ] i’m gessing internal noise are casuing the problem.
How to display images in a SSD1306 Oled display
I want to display a 16×16 image to the display, I am using this code:
I am not being able to put T-Beam to deep sleep
My code is designed to send gps data to ttn via a LILYGO T-Beam and putting it into a SD card as well, right now I’m trying to develop a function which if the gps detects that the device has stopped for more than 30 minutes it puts the T-Beam to deep sleep to save power from a battery, the whole code is below: