forked from espressif/esp-bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request espressif#136 from espressif/bsp/graphic_lib_support
bsp: Proposal of LCD API
- Loading branch information
Showing
26 changed files
with
560 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
/** | ||
* @file | ||
* @brief BSP LCD | ||
* | ||
* This file offers API for basic LCD control. | ||
* It is useful for users who want to use the LCD without the default Graphical Library LVGL. | ||
* | ||
* For standard LCD initialization, you can call all-in-one function bsp_display_start(). | ||
*/ | ||
|
||
#pragma once | ||
#include "esp_lcd_types.h" | ||
|
||
/** | ||
* @brief Create new display panel | ||
* | ||
* For maximum flexibility, this function performs only reset and initialization of the display. | ||
* You must turn on the display explicitly by calling esp_lcd_panel_disp_on_off(). | ||
* The display's backlight is not turned on either. You can use bsp_display_backlight_on/off(), | ||
* bsp_display_brightness_set() (on supported boards) or implement your own backlight control. | ||
* | ||
* If you want to free resources allocated by this function, you can use esp_lcd API, ie.: | ||
* | ||
* \code{.c} | ||
* esp_lcd_panel_del(panel); | ||
* esp_lcd_panel_io_del(io); | ||
* spi_bus_free(spi_num_from_configuration); | ||
* \endcode | ||
* | ||
* @param[out] ret_panel esp_lcd panel handle | ||
* @param[out] ret_io esp_lcd IO handle | ||
* @return | ||
* - ESP_OK On success | ||
* - Else esp_lcd failure | ||
*/ | ||
esp_err_t bsp_display_new(esp_lcd_panel_handle_t *ret_panel, esp_lcd_panel_io_handle_t *ret_io); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.