qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

qp_lvgl.h (736B)


      1 // Copyright 2022 Jose Pablo Ramirez (@jpe230)
      2 // Copyright 2022 Nick Brassel (@tzarc)
      3 // SPDX-License-Identifier: GPL-2.0-or-later
      4 
      5 #pragma once
      6 
      7 #include "qp.h"
      8 #include "lvgl.h"
      9 
     10 #ifndef QP_LVGL_TASK_PERIOD
     11 #    define QP_LVGL_TASK_PERIOD 5
     12 #endif
     13 
     14 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     15 // Quantum Painter - LVGL External API
     16 
     17 /**
     18  * Sets up LVGL with the supplied display.
     19  *
     20  * @param device[in] the handle of the device to control
     21  * @return true if init. of LVGL succeeded
     22  * @return false if init. of LVGL failed
     23  */
     24 bool qp_lvgl_attach(painter_device_t device);
     25 
     26 /**
     27  * Disconnects LVGL from any attached display
     28  */
     29 void qp_lvgl_detach(void);