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#372 from espressif/feat/noglib_example
feat(test_apps): Add noglib test_app
- Loading branch information
Showing
20 changed files
with
534 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,68 @@ | ||
# Examples: Always build all | ||
examples: | ||
disable: | ||
- if: CONFIG_NAME in ["esp-box", "esp-box-lite"] | ||
reason: Do not build examples for deprecated BSPs | ||
- if: IDF_VERSION_MAJOR < 5 and CONFIG_NAME in ["esp32_c3_lcdkit", "esp32_s3_lcd_ev_board", "esp32_s3_usb_otg", "m5stack_core_s3", "m5stack_core_2", "m5dial"] | ||
reason: Example depends on BSP, which is supported only for IDF >= 5.0 | ||
- if: IDF_VERSION_MAJOR < 5 and IDF_TARGET in ["esp32c2", "esp32p4", "esp32c5", "esp32c6"] | ||
reason: Example depends on target, which is supported only for IDF >= 5.0 | ||
- if: IDF_VERSION_MAJOR < 5 and IDF_VERSION_MINOR < 3 and CONFIG_NAME == "esp32_p4_function_ev_board" | ||
reason: Example depends on BSP, which is supported only for IDF >= 5.3 | ||
|
||
components/lcd/esp_lcd_gc9503: | ||
# Noglib test_app: Build only in CI, where ENV_BUILD_NOGLIB is set | ||
test_apps/noglib: | ||
disable: | ||
- if: IDF_VERSION_MAJOR < 5 or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 0 and ESP_IDF_VERSION_PATCH < 5) or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 1 and ESP_IDF_VERSION_PATCH == 1) | ||
reason: Supported from version 5.0.5 and not supported in version 5.1.1 | ||
- if: ENV_BUILD_NOGLIB == 0 | ||
|
||
# Common components test_app: Build for changes in components which do not have their own test_app or example | ||
test_apps/components: | ||
depends_filepatterns: | ||
- "components/bh1750/**" | ||
- "components/ds18b20/**" | ||
- "components/fbm320/**" | ||
- "components/hts221/**" | ||
- "components/icm42670/**" | ||
- "components/io_expander/**" | ||
- "components/lcd/ra8875/**" | ||
- "components/lcd/sh1107/**" | ||
- "components/lcd_touch/**" | ||
- "components/mag3110/**" | ||
- "components/mpu6050/**" | ||
|
||
components/lcd/esp_lcd_gc9503/test_apps: | ||
# esp_lvgl_port: Build only on related changes and components used in examples | ||
components/esp_lvgl_port: | ||
depends_filepatterns: | ||
- "components/esp_lvgl_port/**" | ||
- "components/lcd_touch/esp_lcd_touch_tt21100/**" | ||
- "components/lcd_touch/esp_lcd_touch_gt1151/**" | ||
- "components/lcd/sh1107/**" | ||
|
||
# LCD components: Build only on related changes | ||
components/lcd/esp_lcd_gc9a01: | ||
depends_filepatterns: | ||
- "components/lcd/esp_lcd_gc9a01/**" | ||
|
||
components/lcd/esp_lcd_gc9503: | ||
depends_filepatterns: | ||
- "components/lcd/esp_lcd_gc9503/**" | ||
disable: | ||
- if: IDF_VERSION_MAJOR < 5 or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 0 and ESP_IDF_VERSION_PATCH < 5) or (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR == 1 and ESP_IDF_VERSION_PATCH == 1) | ||
reason: Supported from version 5.0.5 and not supported in version 5.1.1 | ||
|
||
components/lcd/esp_lcd_ssd1681: | ||
disable: | ||
- if: IDF_VERSION_MAJOR < 5 | ||
reason: Component is supported only for IDF >= 5.0 | ||
|
||
components/esp_lvgl_port/examples/rgb_lcd: | ||
disable: | ||
- if: IDF_VERSION_MAJOR < 5 | ||
reason: Example for RGB LCD is supported only for IDF >= 5.0 | ||
components/lcd/esp_lcd_ili9341: | ||
depends_filepatterns: | ||
- "components/lcd/esp_lcd_ili9341/**" | ||
|
||
components/lcd/esp_lcd_ili9881c: | ||
depends_filepatterns: | ||
- "components/lcd/esp_lcd_ili9881c/**" | ||
disable: | ||
- if: (IDF_VERSION_MAJOR == 5 and IDF_VERSION_MINOR < 3) or IDF_VERSION_MAJOR < 5 | ||
reason: Component is supported only for IDF >= 5.3 | ||
- if: IDF_TARGET not in ["esp32p4"] | ||
reason: Component is supported only for esp32p4 target | ||
|
||
components/lcd/esp_lcd_st7796/test_apps: | ||
disable: | ||
- if: IDF_VERSION_MAJOR < 5 | ||
reason: Component is supported only for IDF >= 5.0 | ||
components/lcd/esp_lcd_ssd1681: | ||
depends_filepatterns: | ||
- "components/lcd/esp_lcd_ssd1681/**" | ||
|
||
components/lcd/esp_lcd_st7796: | ||
depends_filepatterns: | ||
- "components/lcd/esp_lcd_st7796/**" |
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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
# The following five lines of boilerplate have to be in your project's | ||
# CMakeLists in this exact order for cmake to work correctly | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
set(COMPONENTS main) | ||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(noglib) |
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,23 @@ | ||
# No Graphical Library BSP test_app | ||
|
||
BSPs are by default shipped with LVGL graphical library. This test_app shows how you can use 'noglib' version of BSPs (without LVGL) and is used mainly for CI testing purposes. | ||
|
||
More information about noglib BSPs can be found in root [README file](../../README.md). | ||
|
||
## How to use the example | ||
|
||
### Hardware Required | ||
|
||
* Any of the supported boards | ||
|
||
### Compile and flash | ||
|
||
This example is used mainly for CI testing purposes. If you want to build it locally, follow these steps: | ||
|
||
1. Create a noglib version of your BSP with `python ./.github/ci/bsp_noglib.py <name_of_your_bsp>` | ||
2. Update [idf_component.yml](main/idf_component.yml) with your BSP | ||
3. Compile and flash as usual `idf.py -p COMx flash monitor` | ||
|
||
### Example outputs | ||
|
||
Following picture will be displayed with wave effect: ![](image.jpg) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,2 @@ | ||
idf_component_register(SRCS "noglib_main.c" "pretty_effect.c" | ||
INCLUDE_DIRS ".") |
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,7 @@ | ||
## IDF Component Manager Manifest File | ||
dependencies: | ||
## Required IDF version | ||
idf: ">=5.1" | ||
esp_wrover_kit_noglib: | ||
version: "*" | ||
override_path: "../../../bsp/esp_wrover_kit_noglib" |
Oops, something went wrong.