ssd1306.py text orientation question #12425
Replies: 4 comments 6 replies
-
This isn't necessarily true. It's possible that the controller on the OLED module doesn't implement all features. |
Beta Was this translation helpful? Give feedback.
-
Rather than editing
Are you sure it's a SSD1306, or maybe one of the newer SSD1315 modules? |
Beta Was this translation helpful? Give feedback.
-
Those displays may have different controllers. They can both work, but the functionality may differ.. So you have to refer to the manufacturer's documentation. |
Beta Was this translation helpful? Give feedback.
-
I had a look at it Rob to see what the rotate CMD does but I haven't loaded
it on the esp32 yet, so I don't understand why oled.rotate() is working
with my old lib.
…On Wed, 13 Sept 2023, 7:09 pm Robert Hammelrath, ***@***.***> wrote:
Did you get a copy of the driver linked by @mcauser
<https://github.com/mcauser> ?
—
Reply to this email directly, view it on GitHub
<#12425 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV562M77LHVY4NN2DECG3DLX2FZ3LANCNFSM6AAAAAA4UQCLVY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I've been using the ssd1306.py lib to run the oled display on some TTGO lora boards. In the init_display section there are a couple of lines that allow the display text to be turned upside down depending on the orientation of the board:
SET_SEG_REMAP | 0x01 changes to SET_SEG_REMAP to flip the horizontal
and
SET_COM_OUT_DIR | 0x08 changes to SET_COM_OUT_DIR to flip the vertical
Editing these 2 lines has worked great till today when I stumbled across a board where the text will not re-orient. After I got over the disbelief I had a close look at the board. It's maybe a year or two older than its brethren, stamped lilygo rather than TTGO like the others, the flexible pcb ribbon to the oled is a bit narrower and the red power led is before the on/off switch rather than after it as per the rest.
I'm no expert on display drivers but if it runs the oled OK surely the text re-orientation edit should work? Anybody seen similar recalcitrance before? More importantly, anybody know a work around?
Beta Was this translation helpful? Give feedback.
All reactions