Software › Button toggles LD2
Button toggles LD2
demo Open · freely redistributable
An original CC0 bare-metal STM32F411RE program. It enables GPIOA and GPIOC in RCC, makes PA5 an output and PC13 an input with a pull-up (PUPDR), then polls the button in GPIOC->IDR. B1 is active-low (reads 0 when pressed), so on each falling edge the LED is toggled. Press B1 in the Controller panel (or hold Space/Enter). Exercises the real GPIO input path.
Format: STM32F411RE flash image (bare-metal, compiled C) · By: emulators.org · Licence: Public domain (CC0)