I thought connecting a switch to a raspberry would be a simple task. It took me several days of trying around to finally get it to work properly. Thinking I might need this information again (and maybe others too?), I decided to go and write my findings down as a little how-to.

So if you want to get into hardware-hacking, feel free to read about current-limiting resistors and pull-up/pull-down-resistors as well as signal-bouncing with switches and how to address that in software. If you got any clues or hints for me, I’d be delighted to receive those.