yousaf465
(Yousaf465)
January 24, 2023, 11:51am
1
I am trying to add SS1309 display to ESPhome using ESP32. I tried using this display with WLED but it only white noise on the display.
So I tired using ESPhome with following code and nothing seems to happen. OLED is not even powering up.
This is the code I am using
font:
# gfonts://family[@weight]
- file: "gfonts://Roboto"
id: roboto
size: 20
# Example configuration entry
# Example configuration entry
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
display:
- platform: ssd1306_spi
model: "SSD1306 128x64"
cs_pin: GPIO15
dc_pin: GPIO2
reset_pin: GPIO4
lambda: |-
it.print(0, 0, id(roboto), "Hello World!");
output:
- platform: gpio
pin: GPIO33
id: 'generic_out'
switch:
- platform: output
name: "Screen Enable"
output: 'generic_out'
I can’t understand this code, which is referenced here.
opened 03:24PM - 28 Feb 22 UTC
closed 11:45AM - 02 May 22 UTC
<!-- READ THIS FIRST:
- This is for feature requests only, for issues please g… o to the issues repository.
- Please be as descriptive as possible, especially use-cases that can otherwise not be solved boost the problem's priority.
DO NOT DELETE ANY TEXT from this template! Otherwise the issue may be closed without a comment.
-->
**Describe the problem you have/What new integration you would like**
I bought this Lilygo-TTV and I am trying to use with ESP home but it seem there is no support for this transparent SSD1309 display
https://www.aliexpress.com/item/1005001681414979.html?spm=a2g0o.order_list.0.0.21ef1802XnEQFz
**Please describe your use case for this integration and alternatives you've tried:**
I do manage to download the software, tried using the SSD1306 display over SPI integration but didn't work (I saw in some website that the library would be the same for 1306 and 1309 but no success here).
I don't have the knowledge to adapt it ESPHome, it would be nice to have some nice person helping on this.
**Additional context**
"Oficial" library can be found here:
https://github.com/Xinyuan-LilyGO/LilyGo-TTV/tree/master/lib/U8g2_Arduino
Usage examples for display:
https://github.com/Xinyuan-LilyGO/LilyGo-TTV/tree/master/examples/DISPALY
I found another library that might work:
https://github.com/sparkfun/HyperDisplay_SSD1309_ArduinoLibrary
output:
- platform: gpio
pin: GPIO33
id: 'generic_out'
switch:
- platform: output
name: "Screen Enable"
output: 'generic_out'
Troon
(Troon)
January 24, 2023, 1:10pm
2
Have you tried operating the Screen Enable
switch?
If you’ve not connected the module to anything yet, try adding:
restore_mode: ALWAYS_ON
to the switch definition (docs ).
yousaf465
(Yousaf465)
January 24, 2023, 1:34pm
3
I did which GPIO I should use for the switch?
I am using these pins
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
cs_pin: GPIO15
dc_pin: GPIO2
reset_pin: GPIO4
Troon
(Troon)
January 24, 2023, 1:59pm
4
What screen and ESP hardware do you have: link? The code in the feature request is for a specific packaging of that display.
yousaf465
(Yousaf465)
January 24, 2023, 2:04pm
5
Troon:
restore_mode: ALWAYS_ON
I have 2.42 SSD1309 OLED display, pics with WLED installed
Troon:
restore_mode: ALWAYS_ON
Have you gotten anywhere with getting the SSD1309 to work? I’ve got the same issue.
Gohlas
(Leo)
March 29, 2023, 8:08am
7
I was the one who created that request.
The switch is something specific for the device I have. It power the screen throght GPIO33. I don’t think this is your case.
The only difference I see between your configuration and mine is the miso pin:
spi:
clk_pin: 18
mosi_pin: 23
miso_pin: 32
display:
- platform: ssd1306_spi
model: "SSD1306 128x64"
cs_pin: 5
dc_pin: 19
reset_pin: 4
lambda: |-
...
Not sure if it will help.
yousaf465
(Yousaf465)
March 29, 2023, 11:28am
8
it is working for me on esphome.