lomo/include/lv_ctr_disp.h
2026-05-25 22:14:05 +02:00

63 lines
1.3 KiB
C

/**
* @file lv_ctr_disp.h
*
*/
#if 1
#ifndef LV_CTR_DISP_H
#define LV_CTR_DISP_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
/*********************
* DEFINES
*********************/
// TODO: make it configurable for RGB888/RGB565
// (currently hardcoded to ARGB888, otherwise I was getting only white screen)
#define CTR_LV_COLOR_FORMAT LV_COLOR_FORMAT_ARGB8888
#define CTR_TEX_COLOR_FORMAT GPU_RGBA8
#define CTR_TR_IN_COLOR_FORMAT GX_TRANSFER_FMT_RGBA8
#define CTR_TR_OUT_COLOR_FORMAT GX_TRANSFER_FMT_RGBA8
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
/* Initialize low level display driver */
void lv_ctr_disp_init(void);
/* Enable updating the screen (the flushing process) when disp_flush() is called by LVGL
*/
void disp_enable_update(void);
/* Disable updating the screen (the flushing process) when disp_flush() is called by LVGL
*/
void disp_disable_update(void);
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LV_CTR_DISP_H*/
#endif /*Disable/Enable content*/