# Raspberry Pi

# Button / Switch

1. Set the GPIO to input mode with pull-up.
2. Place 100nF capacitor between GPIO and GND.
3. (Optional) Place 10k resistor between GPIO and 3V3.
4.

# KMS "Screenshot"

```
ffmpeg -f kmsgrab -i - -vf "hwdownload,format=bgr0" screenshot.png
```