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?9 Replies
ok I'll bite , what are you attempting
How are you handling debouncing in this?
Oh, should have been more elaborate earlier 🙏🏽
I am trying to focus on working on a Dual-function button controlled LED system where two LEDs are controlled by different buttons with one being toggled on & off when it's button is pressed whilst the other LED responding to its own button in real-time while both LEDs operate concurrently @ZacckOsiemo
ok so concurrently means managing multiple tasks at once, not necessarily running at the same time. Is that what you mean or do you mean both running at the same time?
running at the same time
then you need more than one core
physics, kinda dictates that
Hi,Enable clock to port C.
RCC_AHB1ENR_GPIOCEN