S SmartDocs
Série: Arduino c 49 lignes · Mis à jour 2026-03-08

lv_conf.h

Arduino/CCIT4080_CL05_PKPD_Group2/lv_conf.h

/**
 * LVGL Configuration for CCIT4080 Health Monitor
 * Based on lv_conf_template.h for LVGL v8.4.x
 *
 * Only defines overrides — all unset macros fall back
 * to defaults in lv_conf_internal.h.
 */

#ifndef LV_CONF_H
#define LV_CONF_H

#include <stdint.h>

/*=====================
 *  COLOR SETTINGS
 *====================*/
#define LV_COLOR_DEPTH     16
#define LV_COLOR_16_SWAP   0   /* TFT_eSPI setSwapBytes(true) handles byte order */

/*=====================
 *  MEMORY SETTINGS
 *====================*/
#define LV_MEM_CUSTOM      0
#define LV_MEM_SIZE        (48U * 1024U)

/*=====================
 *  HAL SETTINGS
 *====================*/
#define LV_TICK_CUSTOM                  1
#define LV_TICK_CUSTOM_INCLUDE          "Arduino.h"
#define LV_TICK_CUSTOM_SYS_TIME_EXPR    (millis())

/*=====================
 *  FONT SETTINGS
 *====================*/
#define LV_FONT_MONTSERRAT_14  1
#define LV_FONT_MONTSERRAT_16  1
#define LV_FONT_MONTSERRAT_20  1
#define LV_FONT_MONTSERRAT_48  1

#define LV_FONT_DEFAULT        &lv_font_montserrat_14

/*=====================
 *  WIDGET USAGE
 *====================*/
#define LV_USE_FLEX   1
#define LV_USE_GRID   1

#endif /* LV_CONF_H */

Articles liés