#define MY_RS485_HWSERIAL Serial2 doesnt work, softserial still used
-
I amusing an Arduino mega as serial <-> RS485 gateway node..
I first tested using the default softserial solutionfrom the examples,and this works fine..
Then i added :
#define MY_RS485_HWSERIAL Serial2So i could use serial2 as hardware serial for RS485. Which did not work. There was no activity on the tx of serial 2at all.
After some switching between hard and softserial during testing it worked all of a sudden.. I thought.. Turned out i left the max485 to the softserial pins.
So even when the hwserial is defined, the softserial is still used!?!?
Is this something anybody else noticed as well?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login