Hello r_merc – sorry for the late reply. Have you resolved the issue, please? It seems to me that one of the outputs was connected to ground and then the digitalWrite() caused short circuit and device reset.
Hello gmartinez – yes, these API is for the RS485 direction control. Please see our latest RS485 example here.