Compare commits
5 Commits
ad7ad20834
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29cf75d046 | ||
|
|
5fb8ab2bb0 | ||
|
|
084dec63f5 | ||
|
|
5bb200d4a0 | ||
|
|
a32e5d1d8f |
@@ -114,7 +114,7 @@ bool wyoscan_face_loop(movement_event_t event, void *context) {
|
|||||||
break;
|
break;
|
||||||
case EVENT_TICK:
|
case EVENT_TICK:
|
||||||
if (!state->animate) {
|
if (!state->animate) {
|
||||||
date_time = watch_rtc_get_date_time();
|
date_time = movement_get_local_date_time();
|
||||||
state->start = 0;
|
state->start = 0;
|
||||||
state->end = 0;
|
state->end = 0;
|
||||||
state->animation = 0;
|
state->animation = 0;
|
||||||
|
|||||||
@@ -72,41 +72,41 @@ static void _update(moon_phase_state_t *state, uint32_t offset) {
|
|||||||
switch (phase_index) {
|
switch (phase_index) {
|
||||||
case 0:
|
case 0:
|
||||||
case 8:
|
case 8:
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "NE!J ", " Neu ");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "NE!J ", " NUEVA");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, " ", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, " ", " ");
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
watch_display_text(WATCH_POSITION_BOTTOM, "CresNt");
|
watch_display_text(WATCH_POSITION_BOTTOM, "Crecie");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAX", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAX", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
watch_set_pixel(2, 13);
|
watch_set_pixel(0, 14);
|
||||||
watch_set_pixel(2, 15);
|
watch_set_pixel(0, 13);
|
||||||
if (currentfrac > 0.125) watch_set_pixel(1, 13);
|
if (currentfrac > 0.125) watch_set_pixel(2, 14);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "1stQtr", " 1st q");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "1stQtr", "4#Crec");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAX", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAX", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
watch_set_pixel(2, 13);
|
|
||||||
watch_set_pixel(2, 15);
|
|
||||||
watch_set_pixel(1, 13);
|
|
||||||
watch_set_pixel(1, 14);
|
watch_set_pixel(1, 14);
|
||||||
|
watch_set_pixel(2, 14);
|
||||||
|
watch_set_pixel(0, 14);
|
||||||
|
watch_set_pixel(0, 13);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "GbboUs", " Gibb ");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "GbboUs", " GibCr");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAX", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAX", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
watch_set_pixel(2, 13);
|
|
||||||
watch_set_pixel(2, 15);
|
|
||||||
watch_set_pixel(1, 14);
|
watch_set_pixel(1, 14);
|
||||||
watch_set_pixel(1, 13);
|
watch_set_pixel(2, 14);
|
||||||
watch_set_pixel(1, 15);
|
watch_set_pixel(1, 15);
|
||||||
|
watch_set_pixel(0, 14);
|
||||||
|
watch_set_pixel(0, 13);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "FULL ", " FULL ");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "FULL ", "LLENA ");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, " ", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, " ", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
watch_set_pixel(2, 13);
|
watch_set_pixel(2, 13);
|
||||||
@@ -120,33 +120,33 @@ static void _update(moon_phase_state_t *state, uint32_t offset) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "GbboUs", " Gibb ");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "GbboUs", " GibMe");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAN", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAN", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
|
watch_set_pixel(2, 13);
|
||||||
|
watch_set_pixel(2, 15);
|
||||||
watch_set_pixel(1, 14);
|
watch_set_pixel(1, 14);
|
||||||
watch_set_pixel(2, 14);
|
watch_set_pixel(1, 13);
|
||||||
watch_set_pixel(1, 15);
|
watch_set_pixel(1, 15);
|
||||||
watch_set_pixel(0, 14);
|
|
||||||
watch_set_pixel(0, 13);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "3rdQtr", " 3rd q");
|
watch_display_text_with_fallback(WATCH_POSITION_BOTTOM, "3rdQtr", "4#meng");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAN", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAN", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
|
watch_set_pixel(2, 13);
|
||||||
|
watch_set_pixel(2, 15);
|
||||||
|
watch_set_pixel(1, 13);
|
||||||
watch_set_pixel(1, 14);
|
watch_set_pixel(1, 14);
|
||||||
watch_set_pixel(2, 14);
|
|
||||||
watch_set_pixel(0, 14);
|
|
||||||
watch_set_pixel(0, 13);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
watch_display_text(WATCH_POSITION_BOTTOM, "CresNt");
|
watch_display_text(WATCH_POSITION_BOTTOM, "MENGUA");
|
||||||
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAN", " ");
|
watch_display_text_with_fallback(WATCH_POSITION_TOP_LEFT, "WAN", " ");
|
||||||
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
if (watch_get_lcd_type() == WATCH_LCD_TYPE_CLASSIC) {
|
||||||
watch_set_pixel(0, 14);
|
watch_set_pixel(2, 13);
|
||||||
watch_set_pixel(0, 13);
|
watch_set_pixel(2, 15);
|
||||||
if (currentfrac < 0.875) watch_set_pixel(2, 14);
|
if (currentfrac < 0.875) watch_set_pixel(1, 13);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user