1

I have L293D shield connected to my arduino UNO and it fills nearly all the digital pins including TX(1) and RX(0) pins. I know this function, but as far as I know, it works for digital pins.

SoftwareSerial NAME(Rx,Tx);

How can I set 2 analog pins as Tx and Rx? I will use them for HC-06.

asked Mar 21, 2020 at 12:06
3
  • The analog pins also have all the functionality of general purpose input/output (GPIO) pins (the same as digital pins 0 - 13). You can just declare it as SoftwareSerial mySerial(A0, A1). Commented Mar 21, 2020 at 12:27
  • BTW, read the caveats on Arduino Reference when using the analog pins as GPIO. Commented Mar 21, 2020 at 12:33
  • 1
    Is the shield really using all these pins, or is it just covering them up? Commented Mar 21, 2020 at 14:33

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.