-
Notifications
You must be signed in to change notification settings - Fork 117
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 #139 from espressif/bsp/general_touch_support
bsp: Add generic touch init functions
- Loading branch information
Showing
13 changed files
with
99 additions
and
18 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
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,34 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
/** | ||
* @file | ||
* @brief BSP Touchscreen | ||
* | ||
* This file offers API for basic touchscreen initialization. | ||
* It is useful for users who want to use the touchscreen without the default Graphical Library LVGL. | ||
* | ||
* For standard LCD initialization with LVGL graphical library, you can call all-in-one function bsp_display_start(). | ||
*/ | ||
|
||
#pragma once | ||
#include "esp_lcd_touch.h" | ||
|
||
/** | ||
* @brief Create new touchscreen | ||
* | ||
* If you want to free resources allocated by this function, you can use esp_lcd_touch API, ie.: | ||
* | ||
* \code{.c} | ||
* esp_lcd_touch_del(tp); | ||
* \endcode | ||
* | ||
* @param[out] ret_touch esp_lcd_touch touchscreen handle | ||
* @return | ||
* - ESP_OK On success | ||
* - Else esp_lcd_touch failure | ||
*/ | ||
esp_err_t bsp_touch_new(esp_lcd_touch_handle_t *ret_touch); |
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
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,34 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: CC0-1.0 | ||
*/ | ||
|
||
/** | ||
* @file | ||
* @brief BSP Touchscreen | ||
* | ||
* This file offers API for basic touchscreen initialization. | ||
* It is useful for users who want to use the touchscreen without the default Graphical Library LVGL. | ||
* | ||
* For standard LCD initialization with LVGL graphical library, you can call all-in-one function bsp_display_start(). | ||
*/ | ||
|
||
#pragma once | ||
#include "esp_lcd_touch.h" | ||
|
||
/** | ||
* @brief Create new touchscreen | ||
* | ||
* If you want to free resources allocated by this function, you can use esp_lcd_touch API, ie.: | ||
* | ||
* \code{.c} | ||
* esp_lcd_touch_del(tp); | ||
* \endcode | ||
* | ||
* @param[out] ret_touch esp_lcd_touch touchscreen handle | ||
* @return | ||
* - ESP_OK On success | ||
* - Else esp_lcd_touch failure | ||
*/ | ||
esp_err_t bsp_touch_new(esp_lcd_touch_handle_t *ret_touch); |
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