Some refactoring of arduino mission control code to handle multiple I/O expanders