6 mm tactile button
A switch that only closes while you press it. It has 4 legs: the legs of each pair are already connected inside; pressing connects one pair to the other. It sits across the center channel of the breadboard. With the internal pull-up, released reads 1 and pressed reads 0.
Pinout
| Pin | Connect to | Note |
|---|---|---|
| 1a / 1b | GPIO (with Pin.PULL_UP) | connected to each other inside |
| 2a / 2b | GND | connected to each other inside |
FastMindLocal AI assistant
The AI that remembers your life and lives on your computer
- Long-term memory with the source of every answer
- Works offline: your data stays on your PC
- Reads PDFs, slides, photos and meeting recordings
Essential plan free forever
MicroPython example
from machine import Pin
import time
botao = Pin(4, Pin.IN, Pin.PULL_UP) # released = 1, pressed = 0
while True:
if botao.value() == 0:
print("pressed")
time.sleep(0.05)
Specifications
| Item | Value | Source |
|---|---|---|
| Size | 6 × 6 mm, 4 legs | Typical datasheet values |
| Bounce | 1–5 ms of transitions when pressed | Typical datasheet values — Under review: measure |
| Which legs are connected | 1a–1b and 2a–2b | Under review: confirm on the lab button |
Values marked "Under review" will still be checked against the parts in the lab.