STM32 GPIO Control – Reading Switches and Driving LEDs (HAL)

Опубликовано: 26 Май 2026
на канале: Jordan Willian
24
0

This project demonstrates basic GPIO control using an STM32 microcontroller.

The firmware reads the state of external switches and controls multiple LEDs based on the input combination. The number of active LEDs corresponds to the sum of the pressed switches.

Features:
GPIO input reading
LED output control
Modular firmware structure (.c / .h)
STM32 HAL drivers
Embedded C implementation

MCU: STM32C031 (Nucleo)
Language: C
Framework: STM32 HAL

GitHub repository: https://github.com/jordan-will/STM32-Switc...