dumped all arduino code into arduino.js