Odroid N2 OLED I2C / SPI driver

It does not work on Kodi 19 Matrix I have OLED 2.42" https://photos.app.goo.gl/4qr3gSiFxk3qjYyz7 https://paste.kodi.tv/ezuwibaluy.kodi

Please post a photo or link to the exact display you have.

I have this one

Nahrávam: Snímka obrazovky 2021-02-25 173428.jpg…

I have a dual boot petitboot Matrix not working, Leia is going

Ok, I have the exact same display but didn’t test it with Matrix, I only tested the smaller I2C displays.

It could be that Matrix doesn’t have SPI enabled by default. Could you try enabling it with:-

mount -o remount,rw /flash
fdtput -t s /flash/dtb.img /soc/cbus@ffd00000/spi@13000/spidev@0 status "okay"
fdtput -t s /flash/dtb.img /soc/cbus@ffd00000/spi@13000 status "okay"

If that does not work then I will test with my SPI display over the weekend and see if I can find the problem.

1 Like

Could you also post your Kodi log so I can see what the error is that appears in your video. Thanks.

Matrix do have a SPI setting in CE settings/hardware/dtb

Manually changing the value will be reset to the setting in CE settings.

Matrix CE settings features:

I gave it and it doesn’t work, through putty

I turned it on too, and it didn’t help


Ok, there’s a new Matrix version on the github release page v0.1.109

Please give it a try.

1 Like

thank you very much
it works

1 Like

Great, thanks for confirming it works :+1:

My display is on its way - I have ordered the same as you have.
Now i dont know how to make SPI connection. On the board there is only I2C written on.
So which pin goes to witch pin to the Odroid?
And resistors for SPI-Mode: as written on PC you only need R4 (0 ohm?) and R3, R5 has to be removed.
What about R7?
Would be nice if somebody could help me (and maybe others) with that information.

here https://github.com/roidy/service.odroidn2.oled

1 Like

If you ordered the same display it should come with the resistors already setup for SPI mode and the wiring instructions are on my github page.

1 Like

Any plans to support bigger displays like the hd44780-2004?
I know this is supported in openvfd but i like the extra info you provide in your driver.

No plans to support any character displays such as the hd44780. If you want a bigger display then look at the 2.42" SSD1309 SPI oleds

you are right.
wiring was really easy - just setting cables to right pins, and yay it works fine!
thank you very much for your efforts!

I am using v0.1.109- Matrix
one thing is not as i expected:
if watching live TV the display shows buffer/timeshift data, not EPG data. so display not really usefull with live TV. As buffer is 2-4 seconds when timeshift is not used and progress bar jumps to 3/4 or 4/4 position and stays there.
Can you have a look what to change to use different information used for displaying progress of broadcast instead of buffer?

edit: you read the player of Kodi:


i have an idea, maybe we can use this information…i can test later today:

its from:


i got it working!
LiveTV and LiveTV Recordings are working fine now :smiley:
as i dont know how to share code on github - here is my changed service.py

service.py (11.2 KB)

Thanks, if you create a pull request I’ll merge the changes.

I made my first PR. :smiley:

1 Like

About | FAQ | Terms of Service | Privacy Policy | Legal Notice