 
     // Toggle LEDs on B
     case BUTTON_B:
+      // Require a 1 second press to turn on, any length press to turn off
+      if(!torch && (time < 1000))
+        break;
+
       torch = !torch;
 
       if(torch)

  // See if there were any button changes
  tilda.buttons.poll();

  // Display some text on the GLCD
  tilda.glcd.firstPage();
  do
  {

    tilda.glcd.setFont(u8g_font_6x10);
    tilda.glcd.setFontPosTop();
    tilda.glcd.drawStr(0, 60, "Code");
    tilda.glcd.drawStr(0, 70, "monkey,");
    tilda.glcd.drawStr(0, 80, "electronics");
    tilda.glcd.drawStr(0, 90, "engineer,");
    tilda.glcd.drawStr(0, 100, "mad");
