I just discovered that the 'Hardware id list' Wiki table for the Arduino_MEGA_2560 states that the pins A0 through A15 can't be used for 'LED'.
I currently use some A-pins for driving LED without problems. So where is the restriction?
Does this rule only apply to the use of the 'hw_led_add()' function, which allows brightness control?
A-Pin can drive LED
Re: A-Pin can drive LED
Hi Paul,
In that table when it refers to led it means the led specific function which as you point out includes the dimming via PWM. If you are using digital output (output in the table) to drive your led’s you are fine. In fact it is recommended to use digital output for driving led’s if dimming is not required. You can connect anything that will work with a simple digital on/off using digital output.
Perhaps the wiki needs a little more clarity on this also.
Tony
In that table when it refers to led it means the led specific function which as you point out includes the dimming via PWM. If you are using digital output (output in the table) to drive your led’s you are fine. In fact it is recommended to use digital output for driving led’s if dimming is not required. You can connect anything that will work with a simple digital on/off using digital output.
Perhaps the wiki needs a little more clarity on this also.
Tony
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: A-Pin can drive LED
Hi,
It is because internally it uses bit banging to drive the LED's.
For performance reasons, I didn't support all pins.
Corjan
It is because internally it uses bit banging to drive the LED's.
For performance reasons, I didn't support all pins.
Corjan