Update Arduino code

Use L_AC_IN constant, remove other unused constants, print rotation.
Update to Xcode 6