screen_demo

Example of the component jef-sure/dgx v0.2.0
# DGX ILI9341 SPI Demo

This example drives a real ILI9341 panel over SPI on ESP32 and renders an Adafruit-style graphics test sequence using DGX primitives and font rendering.

Default wiring uses a common ESP32 layout:

- `MOSI`: GPIO 23
- `MISO`: GPIO 19
- `SCLK`: GPIO 18
- `CS`: GPIO 5
- `DC`: GPIO 16
- `RST`: GPIO 17
- `Backlight`: connected to 3.3v

The demo initializes the DGX SPI bus, creates an `ILI9341` screen in 16-bit color, switches the panel to landscape mode, and cycles through fill, text, line, rectangle, circle, and triangle scenes.

Build and flash it from this example directory:

```sh
idf.py set-target esp32
idf.py flash monitor
```

If your panel uses different pins or a different SPI clock, change the
`EXAMPLE_LCD_*` constants at the top of `main/main.c`. The backlight pin is
not driven (`GPIO_NUM_NC`); pass its GPIO to `dgx_ili9341_init()` if your
board needs it.

To create a project from this example, run:

idf.py create-project-from-example "jef-sure/dgx=0.2.0:screen_demo"

or download archive (~3.64 KB)