arduino code for MEGA and for Razor