Can you provide the code where the Push_Button_Function
function is called? You have only provided the function (and its body) that is called in the event that an edge is detected on Pin 33
but you have not provided the conditional code that prompts this function to be called.
The print statements inside the body of this function only work to notify the user that the function is being called but it does not provide the reason why. For this, we need to move up one level and understand the set-up code or condition for which this function is called.
What is: :smiley:
? Is this even valid?
Additional Review:
I was reviewing one of your earlier posts:
Note how you have the push button pin set up as pin 37
in your previous set-up. But in this post, you have it as:
Note that Pin 37 -> GPIO26
and Pin 33 -> GPIO6
. Can you verify your connections and that the SW
pin setup configuration matches the physical HW
connections. I am making the assumption that this is the same project and set-up. If not, then disregard.