firmata / arduino

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

How to change TX RX pin for Nano #499

Open ratulbmg opened 1 year ago

ratulbmg commented 1 year ago

some Arduino can not support pin 1 and pin 2 as receive and send data. so we need to assign two new pins with the help of serialsoftware. How can I change those pins? Currently i am using Arduino nano

pgrawehr commented 1 year ago

Sorry, I don't fully understand what you're trying. Are you trying to talk to the Arduino Nano using pins 0 and 1? I never really used this, but I'm quite sure that should work out of the box. What problem are you having?

ratulbmg commented 1 year ago

How do I use softwareSerial Library in Firmata?

pgrawehr commented 1 year ago

I never tried this myself, but you should be able to just replace the serial stream you pass as argument to Firmata.begin(stream) with a software-serial instance.