 long lastClick = 0;
 long lastBlink = 0;
 long lastStatus = 0;
-long lastTrigger = 0;
 long last_mem[NUMBER_MEM_BUTTONS];
 
 boolean blinkState = false;

   spinDirection = 2;
   encval = 0;
  } 
}

void setup() {

    }
  }
  
  checkOutputLevel();

  //wipe stale status
  if (statusDisplayed && millis() - lastStatus > 2000) {
    clear_line(1);
