

Im first part of the article the hardware is assembled - but if you are only interested in the software part, here is the initial situation: 15 switches are connected to the Arduino Leonardo, 10 toggle switches and 5 push buttons - each connected somewhere to minus and a GPIO pin. The result: Reasonably clean code, quite redundant, but therefore understandable and simple. With the software, the process was basically the same, but much more relaxed.

Putting the hardware together was a trial and error process - parts were thrown against walls, things had to be reordered, details changed on the fly.
