I'm working on a Raspberry Pi project that requires 30 separate momentary switches to be hooked up to trigger the same function within the software. It's for an art project.
I don't need to distinguish between different buttons - I just need to register any button press - ideally on a single I/O pin for simplicity's sake, if possible.
My first thought is to simply wire up all the buttons in parallel, connected to a single I/O using the internal pull-up resistor. I know that in theory this should form a logical OR gate, which is what I want.
My question is: might multiple button presses cause unexpected behavior or potentially cause electrical damage to the Raspberry Pi? Or will this work as expected? If the former is true, what's the best way to achieve this?