Page 1 of 1

Some chars are confused on 128x32 OLED

Posted: 06 Oct 2019, 12:23
by Micha_he
At my rainwater-cistern level-measurement, I use a blue 128x32 OLED Display (DIY MORE OLED-091).
Because the chars from the P023_OLED-plugins are to small to read, I used the plugin P036_FramedOLED.
When I configure a nomal orientation, some of the chars at the display are confused. With a orientation "rotated" the display is clear!
Look here:
Oled128x32_Problem_Framed.jpg
Oled128x32_Problem_Framed.jpg (21.32 KiB) Viewed 13030 times
Here are my config's:

Firmware: mega-20190607

Zisterne_Devices.jpg
Zisterne_Devices.jpg (29.18 KiB) Viewed 13030 times
Zisterne_Device_Display.jpg
Zisterne_Device_Display.jpg (42.99 KiB) Viewed 13030 times
Any idea, where does this problem come from? Thanks...

Micha

Re: Some chars are confused on 128x32 OLED

Posted: 06 Oct 2019, 23:20
by TD-er
That's a font rendering issue.
The 128x64 and 128x32 use the same pixel addresses.
Meaning the 128x32 is just leaving out half of the pixel lines.

The OLED framed plugin officially does not have support for those small displays.
It may work, but just as you show on your pictures, it does need fonts which are optimized to only use single pixel horizontal lines on the odd or even lines and also shift the entire displayed image a single line when rotating it.

Re: Some chars are confused on 128x32 OLED

Posted: 07 Oct 2019, 08:53
by Micha_he
Damn, then I'll have to replace the display again :cry:

Re: Some chars are confused on 128x32 OLED

Posted: 07 Oct 2019, 09:03
by TD-er
The non "framed" oled plugin does have support for the 128x32 display, so you may also try that one first to see if it will fit your needs.

Re: Some chars are confused on 128x32 OLED

Posted: 07 Oct 2019, 09:15
by Micha_he
That's correct, with the non-framed version the text is clear, but...

the Chars unfortunately are so small, that you can't read it when you look at the display from a distance of ~ 0,5m ;)

@all: Has someone a modified version of the non-framed plugin, with a larger font ? I only need 0-100% on the display.

Re: Some chars are confused on 128x32 OLED

Posted: 08 Oct 2019, 23:13
by Micha_he
I've modified the plugin for my 128x32 OLED. Now it looks ok:
Oled128x32_modified_plugin.jpg
Oled128x32_modified_plugin.jpg (25.78 KiB) Viewed 12886 times
The modifications are:
  • Modified Init-Command for 128x32 OLED
    Disable Header & Page indicator to get more place
    Reduce to max. 3 lines (with 10pixel-font)
    Modify line-heights for 32pixel display height
    Modify scroll-area to full 32pixel display-height
For your own firmware you can get the files/differences from:
https://github.com/Micha-he/ESPEasy/com ... 28415de9c7

or from this zip:
commit_0813cc1.zip
(13.08 KiB) Downloaded 267 times
My programming-skills in c++ are not enough, to integrate it as selection in the web-interface like in P023_OLED-plugin :(

Re: Some chars are confused on 128x32 OLED

Posted: 11 Oct 2020, 23:15
by Uwe-Kaditz
I just created a PR https://github.com/letscontrolit/ESPEasy/pull/3311 for supporting the 128x32 display in the plug in [P036_FrameOLED].
Changes are:
NEW: Setting the correct COM signals pin configuration to match the OLED panel hardware layout for 128x32 display
NEW: Option to hide the header
CHG: Calculate font setting, if necessary reduce lines per page (fonts are not longer a fixed setting)
CHG: Reduce espeasy_logo to 32x32 to fit all displays
CHG: Calculate font setting for splash screen