Hi there my name is Albert and I got a question:
I'm trying to code some sketch and it almost works except for the buttons I try to read at the Analog inputs.
For this I use the joystick library on my Arduino Leonardo.
Can some one give me some advice? and give me a reason why it refuses to work?
I tried:
"pinMode(A0, INPUT_PULLUP); //fire 8
pinMode(A1, INPUT_PULLUP); //start
pinMode(A2, INPUT_PULLUP); //credit"
or
"pinMode(14, INPUT_PULLUP); //fire 8
pinMode(15, INPUT_PULLUP); //start
pinMode(16, INPUT_PULLUP); //credit"
or
"pinMode(18, INPUT_PULLUP); //fire 8
pinMode(19, INPUT_PULLUP); //start
pinMode(20, INPUT_PULLUP); //credit"
non of the above works...
kind regards
Albert
Joystick_test.ino (3.98 KB)