Closed theblackhawk76 closed 3 years ago
you cannot use pin 20, it is already used by rowPins
you do not need to connect the LED to GND and pin 20. instead, just make a connection to one of the button's wires which is either connected to pin 21 (A3) and pin 14. as you will press the button, the circuit will be closed and the current will pass through the LED. and don't copy paste the original code as you have made tweaks of your own and there's no such button which blinks in AMSTUDIO's button box because i don't see any code for a specific LED.
you do not need to connect the LED to GND and pin 20. instead, just make a connection to one of the button's wires which is either connected to pin 21 (A3) and pin 14. as you will press the button, the circuit will be closed and the current will pass through the LED. and don't copy paste the original code as you have made tweaks of your own and there's no such button which blinks in AMSTUDIO's button box because i don't see any code for a specific LED.
Thank you for the answer, that helped!
you're welcome
On Tue, Jan 26, 2021 at 1:14 PM theblackhawk76 notifications@github.com wrote:
Closed #172 https://github.com/MHeironimus/ArduinoJoystickLibrary/issues/172.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MHeironimus/ArduinoJoystickLibrary/issues/172#event-4249320697, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVJPNP3AJGGNUDKKSYVWITS3ZXEFANCNFSM4THKWJPQ .
Hello,
I have an LED connected with GND and pin 20 (A1) on my arduino pro micro and would like to turn it on when Button 1 (pin 21 (A3) and pin 14) is pressed and turn it off when Button 6 (pin 20 (A2) and pin 14) is pressed.
The basic code I am using:
The code is not mine but created by AMSTUDIO.
I would really appreciate your Help, since I have no experience in coding...