Examples
Example sketches in the ESP-DASH repository that demonstrate common dashboard implementations.
The ESP-DASH repository includes documented example sketches that demonstrate common use cases. Each example builds on the setup described in the Integration Guide.
Available examples
| Example | Description |
|---|---|
| AccessPoint | Starts the board in access point (SoftAP) mode and serves the dashboard at 192.168.4.1. |
| Basic | Creates a dashboard with a few cards and updates them in real time at a 3-second interval. |
| Benchmark | Verifies that ESP-DASH Lite works correctly on your platform. |
| Chart | Creates a bar chart and updates it at a regular interval. |
| Dynamic | Allocates cards on the heap and removes a card from the dashboard after 30 seconds by deleting it. Requires familiarity with heap allocation, pointers and destructors. |
| Interactive | Creates an interactive dashboard with a toggle button and a slider. |
All examples are available in the examples folder of the repository. In the Arduino IDE, you can also open them from File > Examples > ESP-DASH after installing the library.