DcsBiosRs485Device - Gadroc/dcs-bios-arduino GitHub Wiki

This object implements the RS-485 half-duplex protocol for control boards. Sketches using DcsBiosRs485Device will talk to a DcsBiosRs485Controller, which will in trun communicate with the PC.


DcsBiosRs485Device dcsBiosDevice(&Serial, 8, 0);

Define an object of DcsBiosRs485Device passing in the address of the serial port to talk to the controller through, the IO pin connnected to the transmit pin on your RS-485 controller and the address of this device on the bus (must be unique on the bus, but two different buses can use the same ids). Be sure to initialize the Serial port to the right baud rate in your setup() method.