I have six switches and I plan to connect them to a single analog input pin through different resistors (a 'trick' that seems to work fine). Just because I know nothing about electronics (I'm an old math sod), here's my question: would it also be possible to connect those switches to, say pin#2, so all those switches would also generate interrupt#0 when one of them is pressed? If possible, how should it be done? Are any additional components necessary besides the different resistors for the switches?
My plan is as follows: if the interupt is triggered, the analog port is read and it is determined which switch is pressed. I know about debouncing the entire shebang.
Thanks for any tips, hints etc.