I want to control an lcd using 2 buttons. I have no 10k or 1k resistors and I have no digital inputs left since I used them all.
Is there a way I could connect my 2 buttons to my analog inputs without using 10k or 1k resistors? I do have 220, 120 and 110 resistors.
Any links to videos, circuits, etc. would help.
Thanks in advance.
Yes ...
Analog input pins are also digital input pins. Use INPUT_PULLUP with buttons connected to GND.
jremington:
Analog input pins are also digital input pins. Use INPUT_PULLUP with buttons connected to GND.
Unless those pins happen to be A6 or A7 on a smd version of the atMega328. We could provide better answers if the OP told us which board he was using.