st7789-python icon indicating copy to clipboard operation
st7789-python copied to clipboard

spi mode configuration

Open imyaFamiliev opened this issue 5 months ago • 2 comments

Hello! please make possibility for changing spi mode in init. because some displays requres differen spi modes! for example this display use mode 3

Image

imyaFamiliev avatar Jun 23 '25 08:06 imyaFamiliev

Any idea what variant of the ST7789 the display is using? Must admit I'm a little confused that it would require a different SPI mode

Does it work if you set the SPI mode on the private _spi object and re-call init?

display = ST7789(...)
display._spi.mode = 3
display._init()

Gadgetoid avatar Jun 23 '25 09:06 Gadgetoid

Any idea what variant of the ST7789 the display is using? Must admit I'm a little confused that it would require a different SPI mode

Does it work if you set the SPI mode on the private _spi object and re-call init?

display = ST7789(...)
display._spi.mode = 3
display._init()

Hello! i add disp.reset() before disp._init() and it works! Thank you!

i use same display as in photo

imyaFamiliev avatar Jul 25 '25 12:07 imyaFamiliev