B4R Question rSoftwareSerial and Arduino Nano

Discussion in 'B4R Questions' started by Cableguy, Apr 26, 2018.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi guys...

    Yesterday I spent over 3 hours trying to create a software serial connection between my Nano and my new A6 GSM board.
    In his example @Erel uses pin 7 and 8... I just can't figure out if these are physically referenced or name referenced.
    If I wanted to use A3 and A4 for the software serial, how would the initialization look like?
     
  2. Filippo

    Filippo Expert Licensed User

    which example?
     
  3. derez

    derez Expert Licensed User

    You mean like this ?
    Code:
    Dim p as pin
    ....
    softserial.Initialize(
    57600, p.A3, p.A4)
    For digital pins use their number, like 7 for D7.
     
    Last edited: Apr 26, 2018
    Cableguy likes this.
  4. Cableguy

    Cableguy Expert Licensed User

    Thanks all
     
  5. Cableguy

    Cableguy Expert Licensed User

    Sorry Filippo, I meant the GSM/GPRS example
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice