Closed kquinsland closed 1 year ago
+1 Same board, same problem
I have the board working using in PlatformIO and the U8G2 library. I would imagine it would be firly easy to add support for this display into ESPHome. I can find this code ssd1306_base.h but surely there must be more to it than just updating the enum? Would be great if someone could point me in the right direction / some instructions on how to get started.
FYI support for these displays has been merged: https://github.com/esphome/esphome/pull/4659
Describe the problem you have/What new integration you would like
I am asking for an expansion to an existing integration. The SSD1306 integration already has several displays that are close in size, but are not quite correct.
I am asking for the
SSD1306
component to support72x40
resolutionPlease describe your use case for this integration and alternatives you've tried:
I am currently trying a
display:
component withSSD1306 64x48
but the results are ... illegible. Pixels are lighting up but they're not forming the image I'd expect (justprintf('HI')
).The display doing anything at all makes sense as it's a common family of controllers. The "corrupted" image would also make sense if the text is being rendered into a frame buffer that does not match the resolution of my display.
Additional context
This is the ESP32/C3 module that I am using / first discovered that this display is even a thing:
https://github.com/01Space/ESP32-C3-0.42LCD
I was able to figure out that it's a common SSD1306 type display by consulting the source code that the module ships with: https://github.com/01Space/ESP32-C3-0.42LCD/blob/main/ESP32-C3-GraphicsTest/ESP32-C3-GraphicsTest.ino#L109
You can find various sellers online with the display in "breakout" form: https://www.buydisplay.com/i2c-white-0-42-inch-oled-display-module-72x40-arduino-raspberry-pi