Skip to content

Commit

Permalink
Added lv_tick_inc
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Jun 20, 2024
1 parent 3a9650a commit 15cb503
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ void setup()

ulong next_millis;

ulong lv_last_tick;

void loop()
{
auto const now = millis();
Expand All @@ -74,5 +76,9 @@ void loop()
#endif
}

// Update the ticker
lv_tick_inc(now - lv_last_tick);
lv_last_tick = now;
// Update the UI
lv_timer_handler();
}

0 comments on commit 15cb503

Please sign in to comment.