Translate Teensy Code into Arduino Uno R3 or Leonardo

Hi everybody,

Oh god it's clear that '=' is totaly different that '=='.
I will try this. I'll told you if it's works.

Thank you everybody.