3 Commits

Author SHA1 Message Date
Mikkeli Matlock
d0d0b4dc39 untracked vscode settings 2026-02-16 22:38:07 +09:00
Mikkeli Matlock
25420d57b3 gitignore 2026-02-16 22:37:38 +09:00
Mikkeli Matlock
18984c29a3 smooth scrolling 2026-02-16 22:28:26 +09:00
4 changed files with 9 additions and 16 deletions

3
.gitignore vendored
View File

@@ -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
View File

@@ -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"
}
}

View File

@@ -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 */
@@ -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: 2 second period */ /* Timer for each shift of 1/8 line's height */
s_scroll_timer = lv_timer_create(scroll_timer_cb, 2048, 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;

2
pi/.gitignore vendored
View File

@@ -2,4 +2,4 @@
*/__pycache__ */__pycache__
__pycache__/ __pycache__/
*.pyo *.pyo
*.pyc *.pyc