firmata / arduino

Firmata firmware for Arduino
GNU Lesser General Public License v2.1
1.55k stars 518 forks source link

Analog pin as digital. #482

Open Plazmin opened 3 years ago

Plazmin commented 3 years ago

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

jguille2 commented 3 years ago

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

Plazmin commented 3 years ago

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.

jguille2 commented 3 years ago

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