 uint8_t logbat = 0;
 uint16_t eeaddr = 1;
 
+uint16_t now = 0;
+uint16_t checkpoint;
+
+
+typedef enum {
+  SCREEN_WATCH,
+  SCREEN_STATUS,
+} Screen;
+
+Screen currentScreen;
+
 void setup() {
+  pinMode(10, INPUT);
+
   Xadow.init();
   //Xadow.greenLed(LEDON);
 

  power_timer1_disable();
  power_timer2_disable();
  power_timer3_disable();
}

void loop() {

  oled.fillScreen(COLOR_BLACK);
  oled.drawString("BOOTING", (RGB_OLED_WIDTH-FONT_X*6)/2, RGB_OLED_HEIGHT/2-FONT_Y/2, 1, COLOR_BLUE);
  delay(1000);
  oled.fillScreen(COLOR_BLACK);
  
  menu_init();
  status_init();
  watch_init(now);
  
  status_show();
  
  delay(1000);
  
  menu_show(test_menu);
  
  delay(1000);
  
  oled.fillScreen(COLOR_BLACK);
  watch_show(0xFF);  

  if (EEPROM[0] != 0x05) {
    EEPROM[0] = 0x05;
    logbat = 1;
  } else {
    Serial.begin(9600);
    Serial.println("Battery log detected, not overwriting");
    for (eeaddr = 1; eeaddr < 1024; ++eeaddr) {
      Serial.println(EEPROM[eeaddr], DEC);
