    if (!sleeping) return;
    
    sleeping = false;
-   Serial.println("Waking up.");
+   Serial.println("dbg: Waking up.");
  }

  lastActivityTime = millis();
  if (sleeping) return;

  Serial.println("Reset p1");
  requestReset = 1;
}


  if (sleeping) return;
  sleeping = true;
  display.sleep();
  Serial.println("dbg: Going to sleep.");
}

 void wakeup()
