Hi All
I am working on a design, and require about 5-6 GPIO pins for various Switch operations.
But I have about 2 spare GPIO pins available.
I do not want to have I2C GPIO extender and have my system continuously poll it. But I might have one if I need additional LED GPIO.
Has anyone used an ADC with various resistors values to determined which switch has been pressed? Is there any disadvantage of this method?
I am working on a design, and require about 5-6 GPIO pins for various Switch operations.
But I have about 2 spare GPIO pins available.
I do not want to have I2C GPIO extender and have my system continuously poll it. But I might have one if I need additional LED GPIO.
Has anyone used an ADC with various resistors values to determined which switch has been pressed? Is there any disadvantage of this method?