SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
hi8561_driver.h
Go to the documentation of this file.
1/*
2 * @Description: hi8561_driver
3 * @Author: LILYGO_L
4 * @Date: 2025-06-13 11:02:44
5 * @LastEditTime: 2025-10-09 10:37:00
6 * @License: GPL 3.0
7 */
8#pragma once
9
10#include <Arduino.h>
11
12#if defined(ARDUINO) && defined(ARDUINO_ESP32P4_DEV)
13
14#include <stdint.h>
15#include "soc/soc_caps.h"
16
17#if SOC_MIPI_DSI_SUPPORTED
18#include "esp_lcd_panel_vendor.h"
19
24typedef struct {
25 int cmd; /*<! The specific LCD command */
26 const void *data; /*<! Buffer that holds the command specific data */
27 size_t data_bytes; /*<! Size of `data` in memory, in bytes */
28 unsigned int delay_ms; /*<! Delay in milliseconds after this command */
29} hi8561_lcd_init_cmd_t;
30
37typedef struct {
38 const hi8561_lcd_init_cmd_t *init_cmds;
42 uint16_t init_cmds_size; /*<! Number of commands in above array */
43 struct {
44 esp_lcd_dsi_bus_handle_t dsi_bus;
45 const esp_lcd_dpi_panel_config_t *dpi_config;
46 uint8_t lane_num;
47 } mipi_config;
48} hi8561_vendor_config_t;
49
63esp_err_t esp_lcd_new_panel_hi8561(const esp_lcd_panel_io_handle_t io, const esp_lcd_panel_dev_config_t *panel_dev_config,
64 esp_lcd_panel_handle_t *ret_panel);
65
66#endif
67#endif