Login
1 branch 0 tags
Ben (Desktop/Arch) AGENTS.md b60dcff 29 days ago 82 Commits
moon / src / lvgl_port.h
/**
 * @file lvgl_port.h
 * Common LVGL port declarations for Moon firmware
 */

#pragma once

#include "lvgl.h"

/**
 * Initialize LVGL display driver
 * Platform-specific implementation in lvgl_port_sdl.c or lvgl_port_esp32.c
 */
void lvgl_port_init(void);

/**
 * Get the LVGL display handle
 */
lv_display_t* lvgl_port_get_display(void);

/**
 * Initialize LVGL input device (keypad)
 * Shared implementation in lvgl_indev.c
 */
void lvgl_port_indev_init(void);

/**
 * Get the LVGL input device handle
 */
lv_indev_t* lvgl_port_get_indev(void);

/**
 * Get the default input group
 */
lv_group_t* lvgl_port_get_group(void);

/**
 * Set LVGL display refresh period in milliseconds
 * 16 = 60fps, 33 = 30fps, 66 = 15fps
 */
void lvgl_port_set_refr_period(uint32_t period_ms);