You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a gc9a01 round display hooked up to an esp32 and i have a switch connected at pin26.
I want to be able to replay the video from the beginning whenever the switch is pressed.
But right now i am only able to use the switch at the beginning and end of the video.
Attached is my code.
Right now what happens is when the esp32 starts it waits for switch input.
When it receives switch input it starts playing the video.
While it is playing the video if i press the switch again, it ignores it.
Only after it is finished playing, it accepts switch input.
Please have a look at the code and provide inputs of what is wrong and how to correct.
Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a gc9a01 round display hooked up to an esp32 and i have a switch connected at pin26.
I want to be able to replay the video from the beginning whenever the switch is pressed.
But right now i am only able to use the switch at the beginning and end of the video.
Sample main.txt
Attached is my code.
Right now what happens is when the esp32 starts it waits for switch input.
When it receives switch input it starts playing the video.
While it is playing the video if i press the switch again, it ignores it.
Only after it is finished playing, it accepts switch input.
Please have a look at the code and provide inputs of what is wrong and how to correct.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions