Examples
Example sketches for ESP-DASH v4 that demonstrate cards, charts, interactive widgets and dynamic dashboards.
The ESP-DASH repository includes documented example sketches that demonstrate common use cases. Each example is self-contained and can be uploaded after setting your Wi-Fi credentials.
Available examples
The following examples ship with ESP-DASH Lite v4.0.9:
| Example | Description |
|---|---|
Basic | Creates temperature and humidity cards and updates them at a fixed interval. |
AccessPoint | Starts the board in Access Point (SoftAP) mode and serves the dashboard at 192.168.4.1. |
Chart | Creates a bar chart and updates its Y-axis values at a regular interval. |
Interactive | Creates a button card and a slider card that respond to user input. |
Dynamic | Creates cards on the heap and removes one from the dashboard at runtime. |
Benchmark | Exercises the library to verify that ESP-DASH works correctly on your platform. |
You can find the examples in the examples folder of the v4.0.9 release. In the Arduino IDE, they are also available under File > Examples > ESP-DASH after installation.
The master branch of the repository contains the ESP-DASH v5 examples, which use a different API. Use the v4.0.9 tag for v4 sketches.