I am using the STM32 G031K8 ARM CORTEX-M0 + development board.
I am writing my code in Assembly language.
I want the LED to light up when I add an external button and press this button. I have adjusted the Clock settings and GPIOx settings. I set the pin that the button is connected to as input.
With which instruction can I get data from the button?
Check out STM32 Cube. It contains plenty of examples.Also, I recommend to read the Cortex-M manual to learn the instruction set.Next, the STM32G032K8 manual.