Grove-RS485 interface with arduino Mega

Great, can you share an example of code you have been used ?)