-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
158 changed files
with
55,194 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xe000, 0x2000, | ||
app0, app, ota_0, 0x10000, 0x3D8000, | ||
spiffs, data, spiffs, 0x3E8000,0x8000, | ||
coredump, data, coredump,0x3F0000,0x10000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,225 @@ | ||
|
||
// File generated by bin2lvgl | ||
// developed by fbiego. | ||
// https://github.com/fbiego | ||
// Watchface: 116_2_DIAL | ||
|
||
#include "116_2_dial.h" | ||
|
||
lv_obj_t *face_116_2_dial; | ||
lv_obj_t *face_116_2_dial_0_384; | ||
lv_obj_t *face_116_2_dial_1_59716; | ||
lv_obj_t *face_116_2_dial_2_59716; | ||
lv_obj_t *face_116_2_dial_3_62316; | ||
lv_obj_t *face_116_2_dial_4_62316; | ||
lv_obj_t *face_116_2_dial_5_114030; | ||
lv_obj_t *face_116_2_dial_6_114030; | ||
lv_obj_t *face_116_2_dial_8_58492; | ||
lv_obj_t *face_116_2_dial_18_162424; | ||
|
||
|
||
#if LV_COLOR_DEPTH != 16 | ||
#error "LV_COLOR_DEPTH should be 16bit for watchfaces" | ||
#endif | ||
#if LV_COLOR_16_SWAP != 1 | ||
#error "LV_COLOR_16_SWAP should be 1 for watchfaces" | ||
#endif | ||
|
||
|
||
const lv_img_dsc_t *face_116_2_dial_dial_img_1_59716_group[] = { | ||
&face_116_2_dial_dial_img_1_59716_0, | ||
&face_116_2_dial_dial_img_1_59716_1, | ||
&face_116_2_dial_dial_img_1_59716_2, | ||
&face_116_2_dial_dial_img_1_59716_3, | ||
&face_116_2_dial_dial_img_1_59716_4, | ||
&face_116_2_dial_dial_img_1_59716_5, | ||
&face_116_2_dial_dial_img_1_59716_6, | ||
&face_116_2_dial_dial_img_1_59716_7, | ||
&face_116_2_dial_dial_img_1_59716_8, | ||
&face_116_2_dial_dial_img_1_59716_9, | ||
}; | ||
const lv_img_dsc_t *face_116_2_dial_dial_img_3_62316_group[] = { | ||
&face_116_2_dial_dial_img_3_62316_0, | ||
&face_116_2_dial_dial_img_3_62316_1, | ||
&face_116_2_dial_dial_img_3_62316_2, | ||
&face_116_2_dial_dial_img_3_62316_3, | ||
&face_116_2_dial_dial_img_3_62316_4, | ||
&face_116_2_dial_dial_img_3_62316_5, | ||
&face_116_2_dial_dial_img_3_62316_6, | ||
&face_116_2_dial_dial_img_3_62316_7, | ||
&face_116_2_dial_dial_img_3_62316_8, | ||
&face_116_2_dial_dial_img_3_62316_9, | ||
}; | ||
const lv_img_dsc_t *face_116_2_dial_dial_img_5_114030_group[] = { | ||
&face_116_2_dial_dial_img_5_114030_0, | ||
&face_116_2_dial_dial_img_5_114030_1, | ||
&face_116_2_dial_dial_img_5_114030_2, | ||
&face_116_2_dial_dial_img_5_114030_3, | ||
&face_116_2_dial_dial_img_5_114030_4, | ||
&face_116_2_dial_dial_img_5_114030_5, | ||
&face_116_2_dial_dial_img_5_114030_6, | ||
&face_116_2_dial_dial_img_5_114030_7, | ||
&face_116_2_dial_dial_img_5_114030_8, | ||
&face_116_2_dial_dial_img_5_114030_9, | ||
}; | ||
const lv_img_dsc_t *face_116_2_dial_dial_img_weather[] = { | ||
&face_116_2_dial_dial_img_8_58492_0, | ||
&face_116_2_dial_dial_img_9_157828_0, | ||
&face_116_2_dial_dial_img_10_156106_0, | ||
&face_116_2_dial_dial_img_11_153152_0, | ||
&face_116_2_dial_dial_img_12_151838_0, | ||
&face_116_2_dial_dial_img_13_154678_0, | ||
&face_116_2_dial_dial_img_14_165314_0, | ||
&face_116_2_dial_dial_img_15_60830_0, | ||
&face_116_2_dial_dial_img_16_150496_0, | ||
}; | ||
const lv_img_dsc_t *face_116_2_dial_dial_img_17_159548_group[] = { | ||
&face_116_2_dial_dial_img_17_159548_0, | ||
&face_116_2_dial_dial_img_17_159548_1, | ||
&face_116_2_dial_dial_img_17_159548_2, | ||
&face_116_2_dial_dial_img_17_159548_3, | ||
&face_116_2_dial_dial_img_17_159548_4, | ||
&face_116_2_dial_dial_img_17_159548_5, | ||
&face_116_2_dial_dial_img_17_159548_6, | ||
}; | ||
const lv_img_dsc_t *face_116_2_dial_dial_img_18_162424_group[] = { | ||
&face_116_2_dial_dial_img_18_162424_0, | ||
&face_116_2_dial_dial_img_18_162424_1, | ||
&face_116_2_dial_dial_img_18_162424_2, | ||
&face_116_2_dial_dial_img_18_162424_3, | ||
&face_116_2_dial_dial_img_18_162424_4, | ||
&face_116_2_dial_dial_img_18_162424_5, | ||
&face_116_2_dial_dial_img_18_162424_6, | ||
}; | ||
|
||
|
||
void init_face_116_2_dial(void){ | ||
face_116_2_dial = lv_obj_create(NULL); | ||
lv_obj_clear_flag(face_116_2_dial, LV_OBJ_FLAG_SCROLLABLE); | ||
lv_obj_set_style_bg_color(face_116_2_dial, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT); | ||
lv_obj_set_style_bg_opa(face_116_2_dial, 255, LV_PART_MAIN | LV_STATE_DEFAULT); | ||
lv_obj_set_style_border_width(face_116_2_dial, 0, LV_PART_MAIN| LV_STATE_DEFAULT); | ||
lv_obj_set_style_pad_left(face_116_2_dial, 0, LV_PART_MAIN| LV_STATE_DEFAULT); | ||
lv_obj_set_style_pad_right(face_116_2_dial, 0, LV_PART_MAIN| LV_STATE_DEFAULT); | ||
lv_obj_set_style_pad_top(face_116_2_dial, 0, LV_PART_MAIN| LV_STATE_DEFAULT); | ||
lv_obj_set_style_pad_bottom(face_116_2_dial, 0, LV_PART_MAIN| LV_STATE_DEFAULT); | ||
|
||
lv_obj_add_event_cb(face_116_2_dial, onFaceEvent, LV_EVENT_ALL, NULL); | ||
|
||
|
||
face_116_2_dial_0_384 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_0_384, &face_116_2_dial_dial_img_0_384_0); | ||
lv_obj_set_width(face_116_2_dial_0_384, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_0_384, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_0_384, 0); | ||
lv_obj_set_y(face_116_2_dial_0_384, 0); | ||
lv_obj_add_flag(face_116_2_dial_0_384, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_0_384, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_1_59716 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_1_59716, &face_116_2_dial_dial_img_1_59716_0); | ||
lv_obj_set_width(face_116_2_dial_1_59716, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_1_59716, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_1_59716, 59); | ||
lv_obj_set_y(face_116_2_dial_1_59716, 54); | ||
lv_obj_add_flag(face_116_2_dial_1_59716, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_1_59716, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_2_59716 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_2_59716, &face_116_2_dial_dial_img_1_59716_0); | ||
lv_obj_set_width(face_116_2_dial_2_59716, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_2_59716, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_2_59716, 49); | ||
lv_obj_set_y(face_116_2_dial_2_59716, 54); | ||
lv_obj_add_flag(face_116_2_dial_2_59716, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_2_59716, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_3_62316 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_3_62316, &face_116_2_dial_dial_img_3_62316_0); | ||
lv_obj_set_width(face_116_2_dial_3_62316, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_3_62316, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_3_62316, 144); | ||
lv_obj_set_y(face_116_2_dial_3_62316, 38); | ||
lv_obj_add_flag(face_116_2_dial_3_62316, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_3_62316, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_4_62316 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_4_62316, &face_116_2_dial_dial_img_3_62316_0); | ||
lv_obj_set_width(face_116_2_dial_4_62316, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_4_62316, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_4_62316, 87); | ||
lv_obj_set_y(face_116_2_dial_4_62316, 38); | ||
lv_obj_add_flag(face_116_2_dial_4_62316, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_4_62316, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_5_114030 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_5_114030, &face_116_2_dial_dial_img_5_114030_0); | ||
lv_obj_set_width(face_116_2_dial_5_114030, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_5_114030, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_5_114030, 169); | ||
lv_obj_set_y(face_116_2_dial_5_114030, 129); | ||
lv_obj_add_flag(face_116_2_dial_5_114030, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_5_114030, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_6_114030 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_6_114030, &face_116_2_dial_dial_img_5_114030_0); | ||
lv_obj_set_width(face_116_2_dial_6_114030, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_6_114030, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_6_114030, 112); | ||
lv_obj_set_y(face_116_2_dial_6_114030, 129); | ||
lv_obj_add_flag(face_116_2_dial_6_114030, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_6_114030, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_8_58492 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_8_58492, &face_116_2_dial_dial_img_8_58492_0); | ||
lv_obj_set_width(face_116_2_dial_8_58492, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_8_58492, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_8_58492, 41); | ||
lv_obj_set_y(face_116_2_dial_8_58492, 169); | ||
lv_obj_add_flag(face_116_2_dial_8_58492, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_8_58492, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
face_116_2_dial_18_162424 = lv_img_create(face_116_2_dial); | ||
lv_img_set_src(face_116_2_dial_18_162424, &face_116_2_dial_dial_img_18_162424_0); | ||
lv_obj_set_width(face_116_2_dial_18_162424, LV_SIZE_CONTENT); | ||
lv_obj_set_height(face_116_2_dial_18_162424, LV_SIZE_CONTENT); | ||
lv_obj_set_x(face_116_2_dial_18_162424, 43); | ||
lv_obj_set_y(face_116_2_dial_18_162424, 40); | ||
lv_obj_add_flag(face_116_2_dial_18_162424, LV_OBJ_FLAG_ADV_HITTEST ); | ||
lv_obj_clear_flag(face_116_2_dial_18_162424, LV_OBJ_FLAG_SCROLLABLE ); | ||
|
||
} | ||
|
||
void update_time_116_2_dial(int second, int minute, int hour, bool mode, bool am, int day, int month, int year, int weekday) | ||
{ | ||
lv_img_set_src(face_116_2_dial_1_59716, face_116_2_dial_dial_img_1_59716_group[(day / 1) % 10]); | ||
lv_img_set_src(face_116_2_dial_2_59716, face_116_2_dial_dial_img_1_59716_group[(day / 10) % 10]); | ||
lv_img_set_src(face_116_2_dial_3_62316, face_116_2_dial_dial_img_3_62316_group[(hour / 1) % 10]); | ||
lv_img_set_src(face_116_2_dial_4_62316, face_116_2_dial_dial_img_3_62316_group[(hour / 10) % 10]); | ||
lv_img_set_src(face_116_2_dial_5_114030, face_116_2_dial_dial_img_5_114030_group[(minute / 1) % 10]); | ||
lv_img_set_src(face_116_2_dial_6_114030, face_116_2_dial_dial_img_5_114030_group[(minute / 10) % 10]); | ||
lv_img_set_src(face_116_2_dial_18_162424, face_116_2_dial_dial_img_18_162424_group[((weekday + 6) / 1) % 7]); | ||
|
||
} | ||
|
||
void update_weather_116_2_dial(int temp, int icon) | ||
{ | ||
lv_img_set_src(face_116_2_dial_8_58492, face_116_2_dial_dial_img_weather[icon % 8]); | ||
|
||
} | ||
|
||
void update_status_116_2_dial(int battery, bool connection){ | ||
|
||
} | ||
|
||
void update_activity_116_2_dial(int steps, int distance, int kcal) | ||
{ | ||
|
||
} | ||
|
||
void update_health_116_2_dial(int bpm, int oxygen) | ||
{ | ||
|
||
} | ||
|
||
|
Oops, something went wrong.