Thought experiment for you... if you could assign "ground" a state, would it be HIGH or LOW? In other words, is ground effectively HIGH or LOW? What does the switch connect the GPIO to when it is pressed?
Thought experiment for you... if you could assign "ground" a state, would it be HIGH or LOW? In other words, is ground effectively HIGH or LOW? What does the switch connect the GPIO to when it is pressed?