A project I'm working on uses a 9 position dip switch to set the starting address. Normally I would dedicate 9 I/0 pins to it but I only have 7 available. I thought maybe I could create a 3x3 matrix and read it like a keypad. My only concern is unlike a keypad multiple switches may be on at one time. Am I over thinking this? Will this method work? Is there a better way?
Bookmarks