Translate Teensy Code into Arduino Uno R3 or Leonardo

Hi AWOL,

I make the correction and i will try this. I'll tell you if it works.

Thank you