Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

How to use External Interrupts – STM32 Tutorial #6

9K views on YouTube

Getting started with external interrupts and handling key press using external interrupt on a GPIO pin using STM32 HAL Callbacks.

Also watch STM32 Tutorial #50 on how to handle button bounce: https://www.youtube.com/watch?v=dyG6BaKxDlA

Examples on github: https://github.com/STM32World/stm32fun
STM32World: https://stm32world.com/wiki/Main_Page

#stm32 #stm32hal #interrupt #nvic #stm32world

00:00 Intro and recap
02:18 Black pill button design (pull up – active low)
03:50 Configuring the GPIO in STM32CubeMX
06:15 Modifying the code – adding the Callback function
09:35 Running and testing the code
10:20 Changing blink frequency on button press
13:50 Testing final code
14:40 Done and dusted