I have six momentary buttons and an STM32 Discovery board.
I want to check the button presses.
As far as I understand, I create a continuous loop that will check each GPIO consecutively. (I am aware of interrupts, however, I want to use GPIO inputs.)
The momentary button sets the GPIO from low to high and low again after release. I can see this as an issue if the GPIO pin is not being read at the exact time it is high.
Do I need to do multi threading to keep those pins constantly checked? or are interrupts my only alternative?