qp_lvgl.h 666 B

12345678910111213141516171819202122232425
  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. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  8. // Quantum Painter - LVGL External API
  9. /**
  10. * Sets up LVGL with the supplied display.
  11. *
  12. * @param device[in] the handle of the device to control
  13. * @return true if init. of LVGL succeeded
  14. * @return false if init. of LVGL failed
  15. */
  16. bool qp_lvgl_attach(painter_device_t device);
  17. /**
  18. * Disconnects LVGL from any attached display
  19. */
  20. void qp_lvgl_detach(void);