~ruther/qmk_firmware

ref: 16d2db5048acedfc9dd5f8e85ca19e50f139ba13 qmk_firmware/quantum/painter/lvgl/qp_lvgl.h -rw-r--r-- 736 bytes
16d2db50 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: I-J (#23767) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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"

#ifndef QP_LVGL_TASK_PERIOD
#    define QP_LVGL_TASK_PERIOD 5
#endif

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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);
Do not follow this link