Skip to content

Commit 4f52b79

Browse files
committed
esp32-s3-box-3: use the display model matching the actual controller
The board's panel is an ILI9342C, not an ILI9486. mipidsi 0.10 validates the interface kind per model and rejects ILI9486Rgb565 over SPI (the real ILI9486 does not support RGB565 on a serial interface), so the display init panicked with InvalidConfiguration(UnsupportedInterface). The ILI9342C supports RGB565 over SPI and has the panel's native 320x240 framebuffer size. Verified on hardware, including touch.
1 parent 6fdc26a commit 4f52b79

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/mcu-board-support/esp32_s3_box_3/esp32_s3_box_3.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type BoardDisplay = mipidsi::Display<
4444
ExclusiveDevice<Spi<'static, esp_hal::Blocking>, Output<'static>, Delay>,
4545
Output<'static>,
4646
>,
47-
mipidsi::models::ILI9486Rgb565,
47+
mipidsi::models::ILI9342CRgb565,
4848
Output<'static>,
4949
>;
5050

@@ -181,7 +181,7 @@ pub fn init() {
181181
let di = mipidsi::interface::SpiInterface::new(spi_device, dc, SPI_BUFFER.init([0u8; 512]));
182182

183183
// Initialize the display.
184-
let display = mipidsi::Builder::new(mipidsi::models::ILI9486Rgb565, di)
184+
let display = mipidsi::Builder::new(mipidsi::models::ILI9342CRgb565, di)
185185
.reset_pin(rst)
186186
.orientation(Orientation::new().rotate(Rotation::Deg180))
187187
.color_order(ColorOrder::Bgr)
@@ -323,7 +323,7 @@ impl<
323323
DI: mipidsi::interface::Interface<Word = u8>,
324324
RST: OutputPin<Error = core::convert::Infallible>,
325325
> slint::platform::software_renderer::LineBufferProvider
326-
for &mut DrawBuffer<'_, mipidsi::Display<DI, mipidsi::models::ILI9486Rgb565, RST>>
326+
for &mut DrawBuffer<'_, mipidsi::Display<DI, mipidsi::models::ILI9342CRgb565, RST>>
327327
{
328328
type TargetPixel = slint::platform::software_renderer::Rgb565Pixel;
329329

0 commit comments

Comments
 (0)