logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

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. #pragma once
  5. #include "qp.h"
  6. #include "lvgl.h"
  7. #ifndef QP_LVGL_TASK_PERIOD
  8. # define QP_LVGL_TASK_PERIOD 5
  9. #endif
  10. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  11. // Quantum Painter - LVGL External API
  12. /**
  13. * Sets up LVGL with the supplied display.
  14. *
  15. * @param device[in] the handle of the device to control
  16. * @return true if init. of LVGL succeeded
  17. * @return false if init. of LVGL failed
  18. */
  19. bool qp_lvgl_attach(painter_device_t device);
  20. /**
  21. * Disconnects LVGL from any attached display
  22. */
  23. void qp_lvgl_detach(void);