#define MY_RS485_HWSERIAL Serial2 doesnt work, softserial still used
Redguy last edited by
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 Serial2
So 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?