Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Jun 20, 2024
1 parent 15cb503 commit 8eb8aa8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ For [PlatformIO](https://platformio.org/)
This is a demo application for the [esp32-smartdisplay](https://github.com/rzeldent/esp32-smartdisplay) library that is intended to be used in [PlatformIO](https://platformio.org/).
See [https://github.com/rzeldent/esp32-smartdisplay](https://github.com/rzeldent/esp32-smartdisplay/) for more information about the driver library.

>[!WARNING]
>Do not forget to clone this repository with submodules: ```git clone --recurse-submodules```!
>This is required to also have the latest version of the [Sunton boards definitions](https://github.com/rzeldent/platformio-espressif32-sunton).
> [!WARNING]
> Do not forget to clone this repository with submodules: `git clone --recurse-submodules`!
> This is required to also have the latest version of the [Sunton boards definitions](https://github.com/rzeldent/platformio-espressif32-sunton).
Example with sound! (if WiFi credentials are provided and speaker attached)

![Example](assets/PXL_20231130_225143662.jpg)

## Version history

- June 2024
- LVGL 9.1
- Update SquareLine project to 1.4.1
Expand All @@ -32,4 +33,3 @@ Example with sound! (if WiFi credentials are provided and speaker attached)
- Demo application created
- October 2023
- Updated UI using [SquareLine Studio](https://squareline.io). This is a graphical UI design tool.

2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#default_envs = esp32-2424S012N
#default_envs = esp32-2432S022N
#default_envs = esp32-2432S022C
#default_envs = esp32-2432S024C
default_envs = esp32-2432S024C
#default_envs = esp32-2432S024N
#default_envs = esp32-2432S024R
#default_envs = esp32-2432S028R
Expand Down
7 changes: 3 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

void OnAddOneClicked(lv_event_t *e)
{
static uint8_t cnt = 0;
static uint32_t cnt = 0;
cnt++;
lv_label_set_text_fmt(ui_lblCountValue, "%d", cnt);
lv_label_set_text_fmt(ui_lblCountValue, "%u", cnt);
}

void OnRotateClicked(lv_event_t *e)
Expand Down Expand Up @@ -50,9 +50,8 @@ void setup()
}

ulong next_millis;
auto lv_last_tick = millis();

ulong lv_last_tick;

void loop()
{
auto const now = millis();
Expand Down

0 comments on commit 8eb8aa8

Please sign in to comment.