feat: add ESP32-S3 ST7789 LCD and GT911 wiring test

This commit is contained in:
2026-07-13 16:56:03 +08:00
commit 6c537e99a2
15 changed files with 1607 additions and 0 deletions

34
main/esp_lcd_st7735.h Normal file
View File

@@ -0,0 +1,34 @@
/*
* SPDX-FileCopyrightText: 2026
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_vendor.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Create LCD panel for ST7735.
*
* @param[in] io LCD panel IO handle
* @param[in] panel_dev_config general panel device configuration
* @param[out] ret_panel returned LCD panel handle
* @return
* - ESP_OK on success
* - ESP_ERR_INVALID_ARG if parameters are invalid
* - ESP_ERR_NO_MEM if out of memory
* - ESP_ERR_NOT_SUPPORTED if the requested pixel format is unsupported
*/
esp_err_t esp_lcd_new_panel_st7735(const esp_lcd_panel_io_handle_t io,
const esp_lcd_panel_dev_config_t *panel_dev_config,
esp_lcd_panel_handle_t *ret_panel);
#ifdef __cplusplus
}
#endif