Skip to content

Commit 702770b

Browse files
committed
Providing API for the user to lock/unlock access to LVGL.
1 parent cbfca0d commit 702770b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Braccio++.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ class BraccioClass
9696
inline bool isJoystickPressed_DOWN() { return (digitalRead(BTN_DOWN) == LOW); }
9797
inline bool isButtonPressed_ENTER() { return (digitalRead(BTN_ENTER) == LOW); }
9898

99+
inline void lvgl_lock () { _display_mtx.lock(); }
100+
inline void lvgl_unlock() { _display_mtx.unlock(); }
101+
99102
static BraccioClass& get_default_instance() {
100103
static BraccioClass dev;
101104
return dev;

0 commit comments

Comments
 (0)