Master-slave communication between the REX Control System and Arduino-compatible microcontrollers