Tweaked the Arduino code in the writeup