Java code for Arduino for Beat Sync, designed by Carl Smith