Release 2026-04-14 spool and filament workflow

This commit is contained in:
2026-04-14 16:39:02 +03:00
parent 52eddcc2c6
commit 3a564e713a
4 changed files with 459 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ namespace
{
String serial_line;
constexpr lv_display_rotation_t kDisplayRotation = LV_DISPLAY_ROTATION_180;
void handleSerialCommand(const String &command)
{
@@ -112,11 +113,17 @@ void setup()
hx711.begin(HX711_DOUT_PIN, HX711_SCK_PIN);
log_i("Initializing smart display...");
smartdisplay_init();
auto *display = lv_disp_get_default();
lv_display_set_rotation(display, LV_DISPLAY_ROTATION_180);
lv_display_t *display = lv_display_get_default();
if (display != nullptr)
{
lv_display_set_rotation(display, kDisplayRotation);
}
log_i("Building UI...");
buildUi();
log_i("UI ready.");
lv_tick_inc(1);
lv_timer_handler();
delay(20);
@@ -134,6 +141,7 @@ void setup()
next_ui_refresh_ms = millis();
log_i("HX711 pins: SCK=%d DOUT=%d", HX711_SCK_PIN, HX711_DOUT_PIN);
log_i("Setup complete.");
}
void loop()