Just so OP knows all the options available, you can also apply charlieplexing for the LEDs. Image may be NSFW.
Clik here to view.
https://en.wikipedia.org/wiki/Charlieplexing
The easiest route is to stick to a keyboard matrix, of course. But in the past, there are many cool tricks to conserve GPIO lines. Like using the ADC to read keyboard switches with very few pins... Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Clik here to view.

https://en.wikipedia.org/wiki/Charlieplexing
The easiest route is to stick to a keyboard matrix, of course. But in the past, there are many cool tricks to conserve GPIO lines. Like using the ADC to read keyboard switches with very few pins... Image may be NSFW.
Clik here to view.

Clik here to view.

Clik here to view.

Statistics: Posted by katak255 — Thu Aug 22, 2024 12:33 am