Skip to content

Commit 6a1787a

Browse files
authored
WebScreen Firmware v2.1.0 (#33)
* feature: Multiple improvements. * feature: Improve performance and increase memory allocation for js apps.
1 parent 6aa7c5e commit 6a1787a

12 files changed

Lines changed: 41920 additions & 41839 deletions

docs/API.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ The following functions are available in your JavaScript applications:
2828

2929
### Core Functions
3030

31-
- **print(message)**
31+
- **print(message)**
3232
Print a message to the serial console for debugging.
33-
34-
- **delay(milliseconds)**
33+
34+
- **mem_stats()**
35+
Print memory statistics (ESP32 heap and LVGL memory usage) to the serial console. Returns the free heap size in bytes. Useful for debugging memory issues.
36+
37+
- **delay(milliseconds)**
3538
Pause execution for the specified number of milliseconds.
3639

37-
- **create_timer()**
40+
- **create_timer()**
3841
Create a timer object for periodic execution.
3942

4043
### String Utilities
@@ -135,8 +138,8 @@ The following functions are available in your JavaScript applications:
135138
- **draw_label(text, x, y)**
136139
Draw a simple text label at the specified coordinates.
137140

138-
- **draw_rect(x, y, width, height, color)**
139-
Draw a rectangle with the specified dimensions and color.
141+
- **draw_rect(x, y, width, height [, color])**
142+
Draw a rectangle with the specified dimensions. Color is optional (defaults to green 0x00ff00). Returns a handle that can be used with `move_obj()`, `rotate_obj()`, etc.
140143

141144
- **show_image(filepath, x, y)**
142145
Display an image from SD card at the specified position.
-1.19 KB
Binary file not shown.
-4.49 KB
Binary file not shown.

webscreen/build/esp32.esp32.esp32s3/webscreen.ino.map

Lines changed: 41711 additions & 41691 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)