Hey, so I’m trying to get ESPHOME to drive an ESP32-2432S022 development board made by GUITION. Which is an ESP32-WROOM-32 with a ST7789V connected to it driving a 240x320 display with the following pin maps
DB0-DB7 = GND
CS = IO17
RS = IO16
WR = IO4
RD = IO2
IM0 is tied to 3.3v (I can't find configuration for IM1,2,3)
Backlight = IO0
DB8 = IO15
DB9 = IO13
DB10 = IO12
DB11 = IO14
DB12 = IO27
DB13 = IO25
DB14 = IO33
DB15 = IO32
The factory demo code initialises two objects
lgfx::Panel_ST7789 _panel_instance; // ST7789UI
lgfx::Bus_Parallel8 _bus_instance; // MCU8080 8B
With this configuration
auto cfg = _bus_instance.config();
cfg.freq_write = 25000000;
cfg.pin_wr = 4;
cfg.pin_rd = 2;
cfg.pin_rs = 16;
cfg.pin_d0 = 15;
cfg.pin_d1 = 13;
cfg.pin_d2 = 12;
cfg.pin_d3 = 14;
cfg.pin_d4 = 27;
cfg.pin_d5 = 25;
cfg.pin_d6 = 33;
cfg.pin_d7 = 32;
_bus_instance.config(cfg);
_panel_instance.setBus(&_bus_instance);
The fact that IM0 is tied to 3.3v and I can’t find any references to the other 3 IM pins, I’m going to assumed they’re tied to ground…
I did some hunting, a lot of googling, all the major AI bots, and crawling through github…
It seems i8080 (aka: i80) is implemented as spi by this pull request
After a bit of trawling, it also seems that it’s only available on the esp-idf framework…
So, I have this comfig
esphome:
name: testdisplay
friendly_name: TestDisplay
esp32:
board: esp32dev
framework:
type: esp-idf
spi:
- id: octal_spi
type: octal
interface: hardware
clk_pin: GPIO4
data_pins: [GPIO15, GPIO13, GPIO12, GPIO14, GPIO27, GPIO25, GPIO33, GPIO32]
display:
- platform: mipi_spi
model: ST7789V
spi_id: octal_spi
cs_pin: GPIO17
dc_pin: GPIO16
reset_pin: GPIO2
dimensions: 240x320
rotation: 0
color_depth: 8
update_interval: 1s
show_test_card: true
Problem is that it’s now mad about
ID ‘octal_spi’ of type spi::OctalSPIComponent doesn’t inherit from spi::SPIComponent. Please double check your ID is pointing to the correct value.
Looks basically like all the test cases in the repo…
I even tried with spi_mode: mode3 on the display…
Any assistance would be greatly appreciated…