Conditional Statement Help Request

  if (lp1 != lp2 , lp1 == 1) { Keyboard.write('1'); lp2 = lp1; };

The comma operator is most certainly not the one you want to use. Which one you do want is not at all clear.