diff options
author | jpe230 <[email protected]> | 2022-12-12 14:51:14 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-13 07:51:14 +1100 |
commit | 102f22f7e99d87989cd95e10370863c3f96ba7e2 (patch) | |
tree | 1b7b27838e01f547714b19932c98e58362354bb8 /quantum/painter/lvgl/qp_lvgl.h | |
parent | 2d19e59d784582cd2e3768ff4e7f7e0c4618eb2f (diff) | |
download | qmk_firmware-102f22f7e99d87989cd95e10370863c3f96ba7e2.tar.gz qmk_firmware-102f22f7e99d87989cd95e10370863c3f96ba7e2.zip |
[Core] Quantum Painter - LVGL Integration (#18499)
Co-authored-by: Nick Brassel <[email protected]>
Diffstat (limited to 'quantum/painter/lvgl/qp_lvgl.h')
-rw-r--r-- | quantum/painter/lvgl/qp_lvgl.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/quantum/painter/lvgl/qp_lvgl.h b/quantum/painter/lvgl/qp_lvgl.h new file mode 100644 index 0000000000..d9ad5e8df1 --- /dev/null +++ b/quantum/painter/lvgl/qp_lvgl.h @@ -0,0 +1,25 @@ +// Copyright 2022 Jose Pablo Ramirez (@jpe230) +// Copyright 2022 Nick Brassel (@tzarc) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "qp.h" +#include "lvgl.h" + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Quantum Painter - LVGL External API + +/** + * Sets up LVGL with the supplied display. + * + * @param device[in] the handle of the device to control + * @return true if init. of LVGL succeeded + * @return false if init. of LVGL failed + */ +bool qp_lvgl_attach(painter_device_t device); + +/** + * Disconnects LVGL from any attached display + */ +void qp_lvgl_detach(void); |