 // These are arduino pin definitions. Note that on leonardo
 // boards MOSI and sclk cannot be directly used, and hence
 // D16 and D15 is a thing only with the Xadow board
-#define cs       (A5)
-#define dc       (3)
-#define mosi     (16)
-#define sclk     (15)
+#define cs                  (A5)
+#define dc                  (3)
+#define mosi                (16)
+#define sclk                (15)
 
 #define LEFT_GUTTER_SIZE    (FONT_X)
 #define FONT_SIZE           (1)
 #define LINE_HEIGHT         (FONT_SIZE*FONT_Y+4)
+
+#define SLEEP_TIME_MS       (250)
 
 SSD1331 oled = SSD1331(cs, dc, mosi, sclk);
 

    // when on battery power disable usb and uart and
    // sleep for 200 ms
    mcu_disable_usbserial();
    Xadow.goToSleep(SLEEP_MODE_PWR_DOWN, 200);
    // take into account the fact millis isn't ticking over
    // during sleep
    now += 200;
  } else {
    // otherwise simulate sleep using delay and enable
    // usb
    mcu_enable_usbserial();
    delay(200);
  }

  power_spi_enable();

  watch_init(now);
  batlog_init(0x33);

  oled.fillScreen(COLOR_BLACK);

  currentScreen = SCREEN_OTHER;
