B4R Question rSoftwareSerial and Arduino Nano

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?
 

Filippo

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?
which example?
 
Upvote 0

derez

Expert
Licensed User
You mean like this ?
B4X:
Dim p as pin
....
softserial.Initialize(57600, p.A3, p.A4)

For digital pins use their number, like 7 for D7.
 
Last edited:
Upvote 0
Top