letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.27k stars 2.21k forks source link

Wemos OLED 64x48 inverted SSD1306 Framed issue. #799

Closed mattlward closed 4 years ago

mattlward commented 6 years ago

I am running on Wemos hardware D1 Mini 3.0.0 and Wemos 64x48 OLED display.

I am running Release v2.0-20180130 dev.

If I configure the display for normal orientation, I get the name of the unit in small font and my single line in large font. Works great!

If I switch to rotated with the following config the screen displays my 1 line of large font and a bunch of dots across the bottom of the screen. image

Bad output: image

I have reset, loaded other versions and no changes. It also happens on multiple units.

TD-er commented 6 years ago

I guess some parts are a bit too hard-coded based on 64 pixel height. Those dots are page tabs showing the active page. They appear at the bottom.

Is the text on the top line readable? Can you also show a photo of the normal orientation? Then I can see if all objects are present, or maybe the display does some scaling

mattlward commented 6 years ago

The text on the top line never appears. I can take pics this evening when I get home. All objects are present when the display is flipped. The dots are not on the screen when it is not rotated.

mattlward commented 6 years ago

Pic of the unit with normal orientation. The screen looks great here, just upside down when mounted. image

TD-er commented 6 years ago

Is it an idea to include flags to display header text and footer tabs? And to define a number of lines offset for the text field?

mattlward commented 6 years ago

Not sure what you are asking... I can get the data to the display and sized correctly without rotated display. But if one wall mounts one of these the USB needs to come out of the bottom of the unit and requires a rotated display to look right and keep the cord right.

TD-er commented 6 years ago

The OLED framed plugin does make a lot of assumptions about the dimensions of the display. Those are fine for 128x64 pixel displays, but not for other sizes. So I could allow to remove the upper and/or lower indicators and allow for the "text area" to be shifted a few pixels to allow to center the important data. Your display is 64x48 and there are also 128x32 displays.

mattlward commented 6 years ago

The Wemos 64x48 display is perfect for tiny sensor stacks. I for one will 7 or 8 of them when done and would love it if the display looked the same inverted as normal. It is nice to see the name of the device for setup reasons.

mattlward commented 6 years ago

Loaded the latest and now it has 2 page indicators at the bottom when inverted, that is the number of pages I have in use. It did have one for each slot before. Also the contrast function works great on the little display!

TD-er commented 6 years ago

Indeed, it is meant to be showing only a dot for each page containing information.

I've updated quite a lot on that plugin and also made some preparations for different resolutions. The ones I want to support -in the end- are:

The display library should support them by now. (also SH1106 based OLED displays are now supported in v2.0) But I still have to try to re-arrange the plugin to support the smaller displays.

mattlward commented 6 years ago

I appreciate the work on the 64x48. It would be nice to have the name of the system and the 1 line of data like in normal when inverted.

On Tue, Feb 6, 2018 at 1:48 AM, Gijs Noorlander notifications@github.com wrote:

Indeed, it is meant to be showing only a dot for each page containing information.

I've updated quite a lot on that plugin and also made some preparations for different resolutions. The ones I want to support -in the end- are:

  • 128x64
  • 128x32
  • 64x48

The display library should support them by now. (also SH1106 based OLED displays are now supported in v2.0) But I still have to try to re-arrange the plugin to support the smaller displays.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/letscontrolit/ESPEasy/issues/799#issuecomment-363338461, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJPqog7pvm48AhRWhI2ol5yFh2P3O5Oks5tSAPUgaJpZM4Rzbr7 .

emeyedeejay commented 5 years ago

Love the framed plugin - just wondering when the 64x48 (Wemos OLED shield) support for it might be available?

Re the system name etc. this should be optional - sometimes it's great, sometimes, not - should be configurable.