Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Dec 26, 2024
2 parents 1814cae + 319048d commit c00072a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
29 changes: 20 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This library integrates seamlessly in [PlatformIO](https://platformio.org/) and

With the boards, there is a link supplied and there are a lot of examples present and this looks fine.... If you know your way around....

These examples for [LVGL](https://lvgl.io/) depend on external libraries ([LCD_eSPI](https://github.com/Bodmer/LCD_eSPI) or [LovyanGFX](https://github.com/lovyan03/LovyanGFX)) but also different touch drivers.
These examples for [LVGL](https://lvgl.io/) depend on external libraries ([TFT_eSPI](https://github.com/Bodmer/TFT_eSPI) or [LovyanGFX](https://github.com/lovyan03/LovyanGFX)) but also different touch drivers.
However, when working with these libraries, I found out that these libraries had their flaws using these boards:

- Lots of configuring to do before it all works,
Expand Down Expand Up @@ -117,7 +117,7 @@ This will automatically download the library, the LVGL library (as a dependency)

LVGL needs a configuration file; `lv_conf.h`. This file contains information about the fonts, color depths, default background, styles, etc...
The default LVGL template can be found in the LVGL library at the location: `lvgl/lv_conf_template.h`.
This file must be copied to the include directory and renamed to `lvgl_conf.h`. Also the `#if 0` must be removed to enable the file to be included.
This file must be copied to the include directory and renamed to `lv_conf.h`. Also the `#if 0` must be removed to enable the file to be included.

This file can immediately be used and is valid. Some modifications might be required fore additional features.

Expand Down Expand Up @@ -203,20 +203,21 @@ More information about the LVGL configuration can be found in the excellent [LVG

### Step 6: Copy the build flags below in your project

Especially the definition of the LV_CONF_PATH is critical, this must point to an **absolute path** where the `lv_conf.h` file is located. More about this in the [section below](#more-on-lv_confh).
Especially the definition of the LV_CONF_PATH is critical, this must point to an **absolute path** where the `lv_conf.h` file is located.
More about this in the [section below](#more-on-lv_confh). See below how this can be done with the use of the platformIO defines:

```ini
build_flags =
-Ofast
-Wall
#-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
#-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
#-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
# LVGL settings. Point to your lv_conf.h file
-D LV_CONF_PATH="${PROJECT_DIR}/example/lv_conf.h"
'-D BOARD_NAME="${this.board}"'
'-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO'
#'-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG'
#'-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE'
'-D LV_CONF_PATH=${platformio.include_dir}/lv_conf.h'
```

The line in the settings logs to the serial console but can be omitted for production builds:
The line in the settings logs the INFO level to the serial console but can be omitted for production builds:

```ini
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE
Expand All @@ -229,6 +230,9 @@ The -Wall flag can also be removed but outputs all the warnings.
To enable to display in your project call the void `smartdisplay_init()` function at startup and optionally set the orientation:

```cpp
#include <Arduino.h>
#include <esp32_smartdisplay.h>

void setup()
{
smartdisplay_init();
Expand All @@ -247,6 +251,7 @@ auto lv_last_tick = millis();

void loop()
{
auto const now = millis();
// Update the ticker
lv_tick_inc(now - lv_last_tick);
lv_last_tick = now;
Expand Down Expand Up @@ -595,6 +600,12 @@ The following libraries are used from the [Espressif component registry](https:/

## Version history

- November 2024
- Version 2.1.0
- LVGL 9.2.2
- Software rotation flag
- Fix for non connected RST in touch drivers
- Fix for esp32-3248S035C buffer size
- October 2024
- Fix for LVGL 9.2.2 that removed the sw_rotate flag
- August 2024
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/schema/library.json",
"name": "esp32_smartdisplay",
"version": "3.0.0",
"description": "LVGL v9.2 driver for Sunton ESP32 Cheap Yellow Display display boards",
"version": "2.1.0",
"description": "LVGL v9.2.2 driver for Sunton ESP32 Cheap Yellow Display display boards",
"keywords": "LVGL Sunton CYD LCD TFT Touch",
"repository": {
"type": "git",
Expand Down

0 comments on commit c00072a

Please sign in to comment.