Go Down

Topic: using A6 or A7 for blink led (Read 383 times) previous topic - next topic

jawadph

hello
i want using A6 pin or 7 the nano for led bacause i dont have ather free pin .if that possible
or for lcd

larryd

A6 and A7 are for analogs only on a Nano.


No technical PMs.
The last thing you did is where you should start looking.

CrossRoads

A6, A7 are analog input only. Can't drive LEDs with them.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jawadph

how add pin or how use lcd withe 74hc959

6v6gt

#4
Mar 14, 2018, 03:32 am Last Edit: Mar 14, 2018, 05:10 am by 6v6gt
Use pins A6 and A7 to free up two pins you are currently using for inputs (buttons etc.).
You'll need an external pullup resistor.

septillion

Only need a pull up is you currently read a button (with pinMode(pin, INPUT_PULLUP)). If you swap an analog reading from A0 - A5 you're all good.

But if you want more useful tips, post a schematic (NOT a Fritzing breadboard view) of your circuit + a description of what it does.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

Go Up