Sterling
DIIDevHeads IoT Integration Server
•Created by Sterling on 8/29/2024 in #firmware-and-baremetal
Issues with GPIO Configuration and Button Functionality on STM32
So guys,
In my setup, I’ve configured the GPIO pins as follows:
In the main loop:
The LED is being toggled solely by the initial
if
statement, and there appears to be no response from the button. The second if
statement is accurate but needs to operate in parallel similar to how millis()
works within the Arduino IDE.
I have some questions:
+ Have I overlooked any configurations for the button and what steps shall I take to make it function?
+ What steps do I need to take in order for it to work simultaneously?10 replies