How to adapt this code from Teensy to Arduino?!

Printable View