What the ST7701S is
The Sitronix ST7701S datasheet (v1.4) describes a single-chip a-Si TFT driver without display RAM. The host has to stream every frame continuously, as a small video signal. Its key figures:
- Resolutions: 480 RGB columns by 360 to 960 lines, including 480×480 (square and round panels), 480×800, 480×854 and 480×864.
- Interfaces: 8/9/16-bit serial (SPI), 16/18/24-bit RGB (sync or DE mode), and MIPI DSI with 1 or 2 data lanes (up to 800 Mbps on one lane, 550 Mbps per lane on two).
- Operating temperature: −30 °C to +85 °C.
The same chip name therefore covers two very different modules:
- RGB panels use the SPI port only to send the init table, then take pixels on the parallel RGB bus.
- MIPI DSI panels take both commands and pixels over DSI.
Check which interface your module's FPC actually brings out. Our ST7701S module, the PJ5015B04 (4.95″ 480×854), uses RGB.
Reset timing
The datasheet asks for a 5 ms wait after RESX goes high before sending commands, and no Sleep Out for 120 ms after a reset.
ESPHome's maintainers found 5 ms too short in practice. Pull request #17646, merged on 28 September 2026, sets a 50 ms reset delay for the ST7701S in the mipi_rgb driver, after a missing delay was found to cause initialisation failures. If you write your own driver, waiting 50 ms after reset is a safer starting point than the datasheet minimum.
ESPHome: use mipi_rgb
ESPHome's st7701s platform is deprecated. Its documentation says it will be removed in a future release, and points to mipi_rgb, which has an ST7701S model (480×480 by default, 16 MHz pixel clock, inverted PCLK).
The old platform has a second problem. Its schema accepts reset_pin, but the driver code only stores the pin and logs it; it never toggles it. A panel whose RST line needs a pulse from the host may therefore never be reset by platform: st7701s. For new projects, use platform: mipi_rgb with model: ST7701S (or a board preset), and configure reset_pin.
Backlight on, screen black
A lit backlight only proves that the backlight GPIO works. It says nothing about whether the panel was initialised. Work through these in order:
- Was the init table sent? On RGB panels it goes over the separate SPI pins (CS, SCK, SDA) before the RGB bus starts.
- Is RST or CS on an IO expander? Many ESP32-S3 boards wire the panel's RST, and sometimes CS, to an I2C expander such as a CH422G or PCA9554/TCA9554. The expander has to be configured in ESPHome or your code, and the pins referenced through it, as in ESPHome's
reset_pin: {ch422g: …}examples. - Intermittent black screen at start-up? Suspect the reset delay above. Update ESPHome, or lengthen the delay in your own driver.
- Using LVGL in ESPHome? The LVGL documentation asks for
auto_clear_enabled: false, no display lambda, and for most displaysupdate_interval: never, because LVGL does the drawing. - Timing: the porches and pixel clock come from your panel's datasheet. Start with ESPHome's 16 MHz model default.
ESP32-S3 checklist
- Enable octal PSRAM and put the frame buffer in PSRAM.
- Send the panel's init table over SPI before starting the RGB peripheral.
- Set HSYNC/VSYNC porches and the pixel clock from the panel datasheet.
- Use bounce buffers if the picture drifts while Wi-Fi is active.
See ESP32-S3 display compatibility and the RGB interface page.
ST7701S library support
| Library | Driver / class | Notes |
|---|---|---|
| LovyanGFX (Arduino / ESP-IDF) | lgfx::Panel_ST7701 with lgfx::Bus_RGB | |
| ESP-IDF esp_lcd | espressif/esp_lcd_st7701 | |
| Note | Initialised over 3-wire SPI, then driven over parallel RGB. |
Display modules using ST7701S
Guides & comparisons
ST7701S RGB Display on ESP32-S3: Fixing Drift, Wrong Colours, Blank Screens and Memory Errors
A symptom-first checklist for 480×480 and other ST7701S RGB panels on the ESP32-S3: blank screen, panel-specific init tables, picture drift with Wi-Fi, frame buffer and PSRAM limits, swapped colours and rotation, with ESP-IDF and ESPHome settings.
GuideHow to Choose a Display for ESP32-S3 (SPI, QSPI, RGB)
Pick the interface and resolution from two numbers: how many bits per second the bus can move and how much memory the frame needs. With worked figures and reference builds.
ST7701S troubleshooting & FAQ
Why does my ST7701S panel stay black on ESP32-S3?
A lit backlight only proves the backlight GPIO works. Check that the init table was sent over the separate SPI pins, that RST/CS are driven if they sit on an IO expander (CH422G, PCA9554/TCA9554), and that the reset delay is long enough: ESPHome uses 50 ms for the ST7701S since PR #17646 because the datasheet's 5 ms proved too short.
What pixel clock should I use for 480×480 on ESP32-S3?
Use the value from your panel's datasheet. ESPHome's mipi_rgb ST7701S model defaults to a 16 MHz pixel clock with inverted PCLK, which is a reasonable starting point; if the picture drifts while Wi-Fi is active, enable bounce buffers or lower the clock.
Is ST7701S an RGB or a MIPI DSI driver?
Both. The datasheet lists 16/18/24-bit RGB (with SPI for init) and MIPI DSI with 1 or 2 data lanes. A given module brings out only one of them, so check the FPC pinout. Our PJ5015B04 module uses RGB.
Should I use platform st7701s or mipi_rgb in ESPHome?
Use mipi_rgb with model ST7701S. The st7701s platform is deprecated and will be removed in a future release, and although its schema accepts reset_pin, the driver never toggles it.
