Some chars are confused on 128x32 OLED

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Some chars are confused on 128x32 OLED

#1 Post by Micha_he » 06 Oct 2019, 12:23

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 12996 times
Here are my config's:

Firmware: mega-20190607

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

Micha

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Some chars are confused on 128x32 OLED

#2 Post by TD-er » 06 Oct 2019, 23:20

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.

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Some chars are confused on 128x32 OLED

#3 Post by Micha_he » 07 Oct 2019, 08:53

Damn, then I'll have to replace the display again :cry:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Some chars are confused on 128x32 OLED

#4 Post by TD-er » 07 Oct 2019, 09:03

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.

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Some chars are confused on 128x32 OLED

#5 Post by Micha_he » 07 Oct 2019, 09:15

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.

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Some chars are confused on 128x32 OLED

#6 Post by Micha_he » 08 Oct 2019, 23:13

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 12852 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 264 times
My programming-skills in c++ are not enough, to integrate it as selection in the web-interface like in P023_OLED-plugin :(

Uwe-Kaditz
New user
Posts: 7
Joined: 05 Jan 2018, 16:26

Re: Some chars are confused on 128x32 OLED

#7 Post by Uwe-Kaditz » 11 Oct 2020, 23:15

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

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests