static void setInvert() { bool invert = !watchConfig.invert; watchConfig.invert = invert; setMenuOptions(); oled_setInvert(invert); }
static display_t draw() { static bool invert; static millis_t lastStrobe; if(strobe) { millis_t now = millis(); if(now - lastStrobe >= strobe) { lastStrobe = now; invert = !invert; oled_setInvert(invert); led_flash(invert ? LED_GREEN : LED_RED, 20, 255); } return DISPLAY_BUSY; } oled_setInvert(true); led_flash(LED_GREEN, 100, 255); led_flash(LED_RED, 100, 255); return DISPLAY_DONE; }
static bool down() { oled_setInvert(watchConfig.invert); watchface_loadFace(); return true; }