Tweak Arduino code for leonardo
tweaks