Introduction to the GPIO peripheral in STM32 microcontrollers. A great explanation of why we need to use PULL-UP and PULL-DOWN resistors. To get the whole tutorial of the STM32 for beginners, please visit
https://www.steppeschool.com/courses/...
0:00 General Introduction
0:18 GPIO output mode
1:08 GPIO input mode
2:04 Pull-up resistor
3:47 Pull-down resistor
4:50 Internal pull-up and pull-down resistors
5:20 Naming GPIO pins