Ardino code for wireless controller