Grove OLED 1.12 inch has garbled display

Hello, I purchased your Grove OLED module and I am unable to make it work - the display turns on, but it is garbled. The behavior is identical to this discussion on the Dexter forum:



<LINK_TEXT text=“https://forum.dexterindustries.com/t/gr … splay/3629”>https://forum.dexterindustries.com/t/grove-1-12-oled-96x96-showing-scrambled-display/3629</LINK_TEXT>



I’m wondering if you know what the problem is. The printing on the back of the unit says it is v 1.0



Tks, Adrian

Hi Adrian,



I only have the v2.1 and tested on <LINK_TEXT text=“https://github.com/DexterInd/GrovePi/bl … o_world.py”>https://github.com/DexterInd/GrovePi/blob/master/Software/Python/grove_oled/grove_i2c_oled_96x96_hello_world.py</LINK_TEXT>. it works well.



Here is the code.



import grove_oled

import time



grove_oled.oled_init()

grove_oled.oled_clearDisplay()

grove_oled.oled_setNormalDisplay()

grove_oled.oled_setVerticalMode()

time.sleep(.1)



for i in range(0,12):

grove_oled.oled_setTextXY(i,0)

grove_oled.oled_putString(“Hello World”)





Do you mean your screen looks like as below picture?







please try “grove_oled.oled_clearDisplay()” to clean the screen. thanks.



Seeed techsupport team

Bill

Hi, ok, thank you for that, it will probably solve the problem.



However, when I try to run that code, I get this error:



ImportError: No module named grove_oled



Do you know how I would install that library and where I would get it?



Regards, Adrian

Hi, so I found the python file set here:



<LINK_TEXT text=“https://github.com/DexterInd/GrovePi/tr … grove_oled”>https://github.com/DexterInd/GrovePi/tree/master/Software/Python/grove_oled</LINK_TEXT>



I then installed it in my GrovePi folder on the Pi, but when I run it, it still doesn’t work properly. If I just run the “clear screen” command, it does not do that.



Is that the correct python code? It matches the one you gave me.



Tks, Adrian