 LP55231 led;
 uint8_t turnOn = 0;
 
-int latestProgram = 0;
+uint8_t latestProgram = 0;
 
 
 void setup()

  delay(50);
  int statusA5 = analogRead(A5);
  if(statusA5<300){
    if(statusA5<150)//left button
      serialControl((uint8_t)(latestProgram+6)%7+48);
    else if(statusA5<220)//right button
      serialControl((uint8_t)(latestProgram+1)%7+48);
    else //middle button
      ;    
    if(turnOn)
    {
      led.engineControl(turnOn, LOAD); //set selected engines to load mode

      led.setCurrent(1);
      led.resetCode(); //reset opcode
    }
  if(serialData == '0')
    testLeds();
  else if(serialData == '1'){
    opcodeHeartBeat();
    latestProgram = 1;
