Odroid N2 OLED I2C / SPI driver

That is a completely different OLED controller, it won’t work with a SSD1306 driver.

It is possible to write a driver for it, isn’t it? :slight_smile:
But the second one is my favorite, although it is very expensive, but looks really nice

Anything’s possible, and that is neat. But I2C is pretty slow, and it won’t refresh that fast.
I’ve seen 256x64 monochrome OLEDs, which should be better.

SPI is not an option to drive them?

SPI should be an option of the N2

Yes, SPI is available on the N2. But obviously you must buy an SPI display. The IIC\I2C labeled ones can’t really be converted.

How can I use custom fonts? for 128x32 I think 12x24 dot font size is better

Have you made TrueHD and DTS HD MA icons too? :slight_smile:

Can you share your driver please ?

1 Like

No, my project/driver has nothing to do with openVFD

My icons are actually just Text with a border around them so there are no icons to make, you just pass the draw function the text string and it takes care of the fancy border, it was much easier than creating separate icons for everything, the draw function supports bordered or inverted :smiley:

It’s written in Python and only of use if what you are creating is also written in Python, there are hundreds of SSD1306/SH1106 code examples on the internet. Once my code is a bit cleaner and I’ve finished a few thing I need to do I’ll be releasing the entire thing on github.

2 Likes

I’ll wait your release on github. No need to reinvent the wheel once more :wink:

Your icons and text are pretty good, Hope a 128x32 version :wink:

The oled will turn off when suspend, can it be always light?

One question , Is these oled pins conflict with dvb tuner?Odroid N2 and internal DVB tuners

My driver makes use of the SMBus python library and uses the hardware I2C on pins 3 and 5, there’s also a second hardware I2C on pins 27 and 28 but I’ve had no luck getting those to work, apparently they are shared with the onboard RTC so may need activating in the device tree.

I’m looking forward to your release

https://wiki.odroid.com/odroid-n2/hardware/expansion_connectors :

Note that I2C-3(Pin 27/28) is shared with on-board RTC chip PCF8563.
So the GPIO feature on Pin 27/28 is disabled by default until you change Device Tree file.

Odroid N2 Oled Driver v0.1 has been released.

Source code
Release v0.1 zip

This addon has so far only been tested by me so I expect there are still plenty of bugs to squash :smiley: If you play a file, audio or video and don’t see the expected icons displayed then please post a Kodi log so I can see whats missing and add it.

2 Likes

just tried your release, the screen upside down, I modified the vfd.conf from vfd_display_type=‘0x1F,0x3C,0x00,0xFD’ to vfd_display_type=‘0x1F,0x3C,0x08,0xFD’,no change

this is my vfd.conf

vfd_gpio_clk=‘0,0,0xFF’
vfd_gpio_dat=‘0,0,0xFF’
vfd_gpio_stb=‘0,0,0xFF’
vfd_chars=‘0,1,2,3,4’
vfd_dot_bits=‘0,1,2,3,4,5,6’
vfd_display_type=‘0x1F,0x3C,0x08,0xFD’

My addon has absolutely nothing to do with OpenVFD or any vfd.conf files…

I created this thread to discuss my addon Odorid N2 Oled Driver but it seems to have been taken over by OpenVFD talk :frowning:

I will add an option to flip the screen for those users who have installed their Oled’s upside down :laughing: