anthonyshibitov / text1306

Simple, lightweight text library for SSD1306 driven OLEDs
GNU Affero General Public License v3.0
0 stars 1 forks source link

Text printed from right to left #1

Open fralbo opened 9 months ago

fralbo commented 9 months ago

Hello, I tried your library but the result is that the txt is displayed from right to left. Any idea?

anthonyshibitov commented 9 months ago

Hey, do you have a picture of what it looks like?

I think either your display is upside down, or mine is. Line 0 should be at the top, and line 7 should be at the bottom.

Regardless, I will push some code soon to make it directionally agnostic.

anthonyshibitov commented 9 months ago

Hello, I tried your library but the result is that the txt is displayed from right to left. Any idea?

This should be fixed with the newest v1.1.0 release (may take a day or so for the library manager to index the update). Try using flipDisplay(), let me know if that works.

fralbo commented 9 months ago

The screen is not inverted vertically but horizontally. Strange.  .

fralbo commented 9 months ago

According to my tests, refreshing the screen periodically causes flickering. Is it possible to write in the memory and update the display once it's ok instead of updating it in clear() and write()?

anthonyshibitov commented 9 months ago

The screen is not inverted vertically but horizontally. Strange.  .

Huh. That is strange. What is your setup? Based off of your picture, are you using an STM32 Black Pill board by chance?

According to my tests, refreshing the screen periodically causes flickering. Is it possible to write in the memory and update the display once it's ok instead of updating it in clear() and write()?

Sorry, can you clarify what you mean by this/what code you have now that is causing issues?

fralbo commented 9 months ago

Yes I'm using a blackpill F411CE. What could be the relationship between the two?

anthonyshibitov commented 9 months ago

Yes I'm using a blackpill F411CE. What could be the relationship between the two?

I’m not sure, but I have an F446RE arriving tomorrow that I’ll try this library on. This library was written on AVR. It could be that I2C is implemented differently/incorrectly on STM in Arduino. I’ll let you know if I find out the issue.