Programming for Arduino Uno VS Latte Panda with Arduino Leonardo

Could be some timer conflict, leonardo vs UNO, try different pins

P.S.
one statement per line is only cosmetic rule, does not affect functionality at all
don't get annoyed by such crappy answers