You are better sticking to the dedicated SPI pins as below
D5 | GPIO14 | OK | OK | SPI (SCLK) |
D6 | GPIO12 | OK | OK | SPI (MISO) |
D7 | GPIO13 | OK | OK | SPI (MOSI) |
D8 | GPIO15 | pulled to GND | OK | SPI (CS) |
From the Displays page it’s worth trying these
The ST7789 is connected via 4 Wire software SPI (
ST7789_CS – GPIO15 – CS (not on your board)
SSPI_SCLK – GPIO14 - SCK
SSPI_MOSI – GPIO13 - SDA
ST7789_DC – GPIO5 – DC
OLEDRESET – GPIO4 - RES
BkLight – GPI00 - BLK )
GPIO0 is just a suggestion.
Sent from Mail for Windows
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/16fab608-31fb-484b-8d18-c54bfcfaec42n%40googlegroups.com.
Not all boards have CS – if yours doesn’t you can ignore it.
The OLEDReset allocation deals with Res.
It worries me when you talk about a template – if a template is active changes made in module configuration don’t take place.
The issue may be that DisplayModel 12 no longer appears in the Commands list so you may need to use an older version (or the Universal Display Driver) – which need the display.ini creating)
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/ec15ddfd-70d3-4601-8e03-25b6843937f0n%40googlegroups.com.
If you are never going to change it use a Template otherwise configure in Configure Module - once you have a Template Activated changes in Configure Module are ignored. It doesn’t help that the check box to Activate a Template is in Other...
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/4d1e3e2f-a0d7-460e-9c8d-ed94fe92b5c2n%40googlegroups.com.
Again from the displays DOCS I see, under the Displaytext command, these miscellaneous commands:
o = switch display off
O = switch display on
Here's the output from the display command:
CMD: display
RSL: RESULT =
{"Display":{"Model":12,"Type":0,"Width":240,"Height":240,"Mode":2,"Dimmer":10,"Size":1,"Font":1,"Rotate":0,"Invert":0,"Refresh":2,"Cols":[16,8],"Rows":2}}
At least it appears to be seeing the module. Yes CS is only needed on displays with CS.
The driver recommends using hardware SPI to work more quickly
One of the issues with Tasmota is undocumented changes (well they are documented but sometimes not where they are needed).
Dimmer is almost certainly the brightness (currently 10%).
In terms of oledreset it seem to have been replaced by displayrst
Sent from Mail for Windows
From: Peggy Schafer
Sent: 28 December 2022 14:47
To: TasmotaUsers
Subject: Re: How to configure ST7789 (240x240 display) in Tasmota GUI?
The tasmota notes for the Display section mention this:
The ST7789 is connected via 4 Wire software SPI ((ST7789_CS), SSPI_SCLK, SSPI_MOSI, ST7789_DC, OLEDRESET, Backlight )
Based on how that's written, the CS assignment is optional?
But I do note the presence of "oledreset" - not "display rst". But I don't see oledreset in the option list in the GUI module config.
Again from the displays DOCS I see, under the Displaytext command, these miscellaneous commands:
o = switch display off
O = switch display on
But I'm not sure how to use them or even if I have to.
There is also a "dimmer" parameter, but I don't know if it's relavent here.
Here's the output from the display command:
CMD: display
RSL: RESULT = {"Display":{"Model":12,"Type":0,"Width":240,"Height":240,"Mode":2,"Dimmer":10,"Size":1,"Font":1,"Rotate":0,"Invert":0,"Refresh":2,"Cols":[16,8],"Rows":2}}
On Tuesday, December 27, 2022 at 11:25:29 PM UTC-5 Peggy Schafer wrote:
Yes I have flashed with display drivers. I don't think that the ST7789 would show up in the module config list without it.
On Tuesday, December 27, 2022 at 11:18:50 PM UTC-5 knowles...@gmail.com wrote:
You have flashed with sonoff-display.bin?
Sent from Outlook for Android
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/d65f2930-15e2-478c-bad2-47ab5054513fn%40googlegroups.com.
I used one a few years ago without any issues – but there have been several versions since then
Sometime back I suggested that you use these pinouts for hardware SPI – they were the ones I used to set one up.
The ST7789 is connected via 4 Wire software SPI (
ST7789_CS – GPIO15 – CS (not on your board) you should not assign this because your board hasn’t got it – Tasmota may be waiting for a response that it never gets.
SSPI_SCLK – GPIO14 – SCK – the same
SSPI_MOSI – GPIO13 – SDA – the same
ST7789_DC – GPIO5 – DC – you have used GPIO0 and have this configured as DHT11
OLEDRESET – GPIO4 – RES – you have GPIO16 – might not be a good pin to use.
BkLight – GPI00 - BLK )
You also have GPIO12 set as MISO
When you are troubleshooting make sure that you only set the pins that are needed, only have the device that you are trying to sort out attached and try to use the default pins. Once you know it works you can try alternate pins.
Sent from Mail for Windows
From: Peggy Schafer
Sent: 29 December 2022 16:28
To: TasmotaUsers
Subject: Re: How to configure ST7789 (240x240 display) in Tasmota GUI?
When the device is reset, I see transiently for about a second the screen comes on and it looks like a static display of random grey noise on the screen.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/f73316e2-54f1-48e6-8405-a8de122c1a0fn%40googlegroups.com.
Then I went back and flashed tasmota-display.bin verion 9.4.0.
AND IT WORKS. sort of.
I can put text on the screen (displaytext what-ever). Toggling the front-page power switch does turn the display on and off. What-ever text I had on the screen will come back when I go from off to on.
I note that the parameter "Display RST" is abscent, seemingly replaced by "OLED Reset". I have that on GPIO4.
I have not defined Backlight. I have not defined the CS line (ST7789_CS).
displaymode 1 (display date and time) does nothing. gives me a blank screen. Using the command displaytext in this mode does nothing.
But displaymode 0 then using displaytext does put text on the screen, and displaysize does increase text size.
Now, why doesn't displaymode 1 work? It just clears the screen. The device is contacting ntp server, it has the correct date and time.
I suspect that with later versions you need to specifically compile with USE_DISPLAY_ST7789 (and USE_SPI) or use the Universal Display Driver (and put the parameters in Rule 3 as described on the Displays page).
Tasmota/ST7789_display.ini at development · arendst/Tasmota (github.com)
Does anything appear in console when you type DisplayMode 1?
USE_DISPLAY_ST7789
Sent from Mail for Windows
From: Peggy Schafer
Sent: 30 December 2022 05:22
To: TasmotaUsers
Subject: Re: How to configure ST7789 (240x240 display) in Tasmota GUI?
I've downloaded and flashed the pre-compiled tasmota-display.bin (version 12.1.1 if I recall) and - same result.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/2f8742df-f944-413f-9bbc-eba7b33b7dd4n%40googlegroups.com.
It sounds like some parameters aren’t right in the set up. I think it’s worth trying the Universal Display.
Sent from Mail for Windows
From: Peggy Schafer
Sent: 30 December 2022 14:40
To: TasmotaUsers
Subject: Re: How to configure ST7789 (240x240 display) in Tasmota GUI?
CMD: displaymode 0
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/575ca17e-288f-4423-9724-f1aa18352887n%40googlegroups.com.