Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SoftwareSerial mySerial in UNO with the library #21

Open
panda901201 opened this issue Jul 20, 2014 · 1 comment
Open

Use SoftwareSerial mySerial in UNO with the library #21

panda901201 opened this issue Jul 20, 2014 · 1 comment

Comments

@panda901201
Copy link

Hey chunlinhan

Sorry to bother you again...You have been a great great help and I really appreciate your time.

I am using a UNO, so which mean there is only one hardware serial port.

I would like to connect RM04 with the SoftwareSerial mySerial, so i have changed
image

but after I have saved at_drv.cpp and compile my sketch, it shows
image

Can you please tell me how to modify your library so I can connect my RM04 to a software serial?

BTW, I saw your reply in issue#4
image

You have suggested to use AltSoftSerial Library, so is it better for me to use this library instead of SoftwareSerial library?

And if you prefer to use AltSoftSerial Libary, please tell me that how can i modify your library to work with it a bit in detail

What I have tried with AltSoftSerial Library
image

I changed #include "AltSoftSerial.h" and #define AT_DRV_SERIAL altSerial

But when I compile my sketch i got this
image

@chunlinhan
Copy link
Owner

Hi,

Remember to add the following code into your main sketch.
#include <AltSoftSerial.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants