Examples¶
A collection of working code examples to help you get started with mGui quickly.
Each example is self-contained and progressively introduces more features of the library.
Example List¶
| Example | Description | Target |
|---|---|---|
| Hello Button | One screen, one button, one click handler – the minimal mGui program | Any platform |
| Multi-Screen App | Two screens with navigation – shows how to free and recreate screens | Any platform |
| RP2040 Starter | Round 240 × 240 display layout with brightness arc, toggle and buttons | RP2040 |
Tip: All examples assume a 240 × 240 display.
AdjustSCREEN_WIDTH/SCREEN_HEIGHTmacros to match your hardware.