arduino icon indicating copy to clipboard operation
arduino copied to clipboard

Analog pin as digital.

Open Plazmin opened this issue 4 years ago • 3 comments

Arduino boards allow the use of analog pins as digital. Can the firmata use analog pins as digital? How to configure it?

Plazmin avatar Jun 14 '21 08:06 Plazmin

Hi Plazmin,

Yes, it depends on the boards... but you can use the "digital number" of the pin.

For example, in an "UNO", A0 is digital 14. Then, you can use that pin using that digital numeration.

Joan

jguille2 avatar Jun 14 '21 11:06 jguille2

I'm not sure if the firmata works like that. I don't want to burn the port in arduino so i want 100% confirmation.

Plazmin avatar Jun 14 '21 19:06 Plazmin

https://www.arduino.cc/en/Reference/AnalogPins

jguille2 avatar Jun 14 '21 23:06 jguille2