Try changing BUSNUMBER from 2 to 1
Thank you very much, I fixed it to 3 (in Khadas Vim3, the i2c port number is 3). I replaced it in the file oled.py in two lines of code “SMBusWrapper(2) to SMBusWrapper(3)”
for i in range(0, len(buffer), 16):
with SMBusWrapper(3) as bus:
bus.write_i2c_block_data(self._i2c, 0x40, buffer[i:i+16])
After that everything worked.
Very thanks!!!
Do you have plans to support 256x128 indicators?
No, I don’t have that size of display to write code for or test.
Yep, that should really be
with SMBusWrapper(BUSNUMBER) as bus:
then it only needs to be set once at the top of the code. I must of missed it.
Thanks fos answers.
I updated to CoreELEC 20 (Nexus) today.
To get this addon working on Nexus i needed to change two lines in spi.py:
line 390 and 437
from
data = array.array(‘B’, data).tostring()
to
data = array.array(‘B’, data).tobytes()
i think this could be the reason we have to change the conversion method:
Thank you very much for your information.
I updated to Nexus and was really sad the display was not working anymore.
Hi, Does anyone know if this also applies to coreelec omega? I tried it on omega and it didn’t work. Can someone look at it, see if it works, or make a repair? Thank
Where is any log?
https://wiki.coreelec.org/coreelec:ce_support
I apologize, but I don’t own that box, I had to go to it and make a log. I am sending a log. hastebin
No, the addon is based on Python 2, Omega has moved on to Python 3 now so it will need some changes to get it working.
data = array.array(‘B’, data).tobytes()
this ‘B’ is around apostrophe and not backtick.
yes, that was a mistake it’s working thanks
Hi. I upgraded today to the latest version of CoreELEC Omega V21.0. I tried both versions 0.1.108 and 0.1.109 of the OLED / SPI driver and neither works with my 128x64 SSD1309 SPI OLED screen. The CoreELEC / Hardware / SPI menu option is set to On. Menu option DVB GPIO support is set to Off by defaut. Also tried to edit and change the two lines in spi.py from data = array.array(‘B’, data).tostring() to data = array.array(‘B’, data).tobytes() but no result. The OLED screen worked perfectly with CoreELEC Matrix 19.5. So I don’t know what else to try…
EDIT :
Ok , my mistake, It was simply a syntax error on my part when editing the spi.py file. Everything works fine now ! Have a nice day !