01 Overview
Direction, interrupts, pulls.
- Use when: buttons, alarm in, relays.
- Skip when: high-speed timing (RMT/SPI).
Sensors and I/O
Buttons, relays, level detect. The I/O baseline.
Official path: examples/peripherals/gpio/generic_gpio
Direction, interrupts, pulls.
1. Pin, direction, pulls.
2. ISR or poll.
3. Debounce keys; interlock relays.
中文
传感器与外设
按键、继电器、电平检测。产品 IO 的基础课。
官方路径: examples/peripherals/gpio/generic_gpio
配置输入/输出、中断、上下拉。
1. 选脚、方向、上下拉。
2. 中断或轮询。
3. 产品按键要软件防抖,继电器要互锁。