Go Down

Topic: Mirroring OLED horizontally (Read 2149 times) previous topic - next topic

epicface2304

Hello!

I am currently working with an SSD1306-based 128x64 I2C OLED for smart glasses. I have an issue where the screen can be mirrored vertically with the commands (in the Adafruit SSD1306 library):

display.ssd1306_command(0xC8);

which yields a result like this:

Original:
hello world

With command (the font is reversed as well IRL but not here):
ɥǝllo ʍoɹlp

I need it to be like this though:

Original:
hello world

With command (I need the font mirrored as well):
dlrow olleh

I was wondering if there was a command in the datasheets for the latter.

Thank you in advance!!

olikraus

#1
May 06, 2018, 07:39 pm Last Edit: May 06, 2018, 07:39 pm by olikraus

bitbank

Hello!

I am currently working with an SSD1306-based 128x64 I2C OLED for smart glasses. I have an issue where the screen can be mirrored vertically with the commands (in the Adafruit SSD1306 library):

display.ssd1306_command(0xC8);

which yields a result like this:

Original:
hello world

With command (the font is reversed as well IRL but not here):
ɥǝllo ʍoɹlp

I need it to be like this though:

Original:
hello world

With command (I need the font mirrored as well):
dlrow olleh

I was wondering if there was a command in the datasheets for the latter.

Thank you in advance!!
0xA0 and 0xA1 disable and enable horizontal mirroring (called segment remap in the datasheet)
Library? We don't need no stinkin' library...we write our own

epicface2304

Works like a charm! Thanks!!!

Go Up