Compare commits
5 Commits
379f8e105b
...
bugfix/ws-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0d0b4dc39 | ||
|
|
25420d57b3 | ||
|
|
18984c29a3 | ||
|
|
7555efcba9 | ||
|
|
7f644652bb |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,3 +3,6 @@ managed_components/
|
|||||||
sdkconfig
|
sdkconfig
|
||||||
sdkconfig.old
|
sdkconfig.old
|
||||||
dependencies.lock
|
dependencies.lock
|
||||||
|
|
||||||
|
# vscode local settings
|
||||||
|
.vscode/
|
||||||
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"idf.currentSetup": "J:\\esp\\.espressif\\v5.5.2\\esp-idf",
|
|
||||||
"idf.flashType": "UART",
|
|
||||||
"idf.portWin": "COM7",
|
|
||||||
"idf.openOcdConfigs": [
|
|
||||||
"interface/ftdi/esp_ftdi.cfg",
|
|
||||||
"target/esp32s3.cfg"
|
|
||||||
],
|
|
||||||
"idf.customExtraVars": {
|
|
||||||
"IDF_TARGET": "esp32s3"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -132,7 +132,9 @@ static void scroll_timer_cb(lv_timer_t *timer)
|
|||||||
cur_y = 0;
|
cur_y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
lv_obj_scroll_to_y(tbl_services, cur_y + s_row_h, LV_ANIM_OFF);
|
// lv_obj_scroll_to_y(tbl_services, cur_y + s_row_h, LV_ANIM_OFF);
|
||||||
|
const int delta_y = s_row_h / 8;
|
||||||
|
lv_obj_scroll_to_y(tbl_services, cur_y + delta_y, LV_ANIM_ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Measure row height, compute visible rows, append duplicates for seamless loop */
|
/* Measure row height, compute visible rows, append duplicates for seamless loop */
|
||||||
@@ -261,7 +263,7 @@ static void create_time_bar(lv_obj_t *parent)
|
|||||||
static void create_main_section(lv_obj_t *parent)
|
static void create_main_section(lv_obj_t *parent)
|
||||||
{
|
{
|
||||||
/* === Left column: Services + Pi Vitals === */
|
/* === Left column: Services + Pi Vitals === */
|
||||||
create_label(parent, 4, MAIN_Y + 2, &InziuIosevka_Slab_CC_12px, "SERVICES");
|
create_label(parent, 4, MAIN_Y + 1, &InziuIosevka_Slab_CC_12px, "SERVICES");
|
||||||
|
|
||||||
tbl_services = lv_table_create(parent);
|
tbl_services = lv_table_create(parent);
|
||||||
lv_obj_set_pos(tbl_services, 4, MAIN_Y + 16);
|
lv_obj_set_pos(tbl_services, 4, MAIN_Y + 16);
|
||||||
@@ -281,8 +283,8 @@ static void create_main_section(lv_obj_t *parent)
|
|||||||
lv_table_set_cell_value(tbl_services, i, 1, "---");
|
lv_table_set_cell_value(tbl_services, i, 1, "---");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Auto-scroll timer: 1 second period */
|
/* Timer for each shift of 1/8 line's height */
|
||||||
s_scroll_timer = lv_timer_create(scroll_timer_cb, 1000, NULL);
|
s_scroll_timer = lv_timer_create(scroll_timer_cb, 200, NULL);
|
||||||
|
|
||||||
/* === Left column: Pi Vitals (below services) === */
|
/* === Left column: Pi Vitals (below services) === */
|
||||||
int rx = 0;
|
int rx = 0;
|
||||||
@@ -294,7 +296,7 @@ static void create_main_section(lv_obj_t *parent)
|
|||||||
int temp_x = rx + 155; /* TEMP column, right of value labels */
|
int temp_x = rx + 155; /* TEMP column, right of value labels */
|
||||||
|
|
||||||
/* Pi Vitals header */
|
/* Pi Vitals header */
|
||||||
create_label(parent, rx + 4, 177, &InziuIosevka_Slab_CC_12px, "PI VITALS");
|
create_label(parent, rx + 4, 175, &InziuIosevka_Slab_CC_12px, "PI VITALS");
|
||||||
|
|
||||||
int ry = 192;
|
int ry = 192;
|
||||||
|
|
||||||
|
|||||||
2
pi/.gitignore
vendored
2
pi/.gitignore
vendored
@@ -2,4 +2,4 @@
|
|||||||
*/__pycache__
|
*/__pycache__
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyo
|
*.pyo
|
||||||
*.pyc
|
*.pyc
|
||||||
Reference in New Issue
Block a user