View previous topic :: View next topic |
Author |
Message |
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Mon Dec 17, 2018 2:41 pm Post subject: I2C LCD screen and Gentoo |
|
|
Hello,
I bought tiny I2C LCD screens and I would like to use one of them on my BananaPI under Gentoo.
Only references I found is about AdaFruit's python library, but I would like to know if there is a library for C ?
Or ... but I think I'm dreaming, a way to use it as a framebuffer.
Thanks for your idea
Laurent |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sat Dec 22, 2018 8:48 pm Post subject: |
|
|
Well, I found this library : https://github.com/jonesman/ArduiPi_OLED
Unfortunately, it doesn't work for me : write error when I'm running the demo.
In addition, I2C target is hard coded so not so good.
I think I'll write mine ... |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun Dec 23, 2018 1:21 pm Post subject: |
|
|
Well, I corrected the compilation issue and it's working pretty well on my BananaPI.
Obviously , it's quite slow, something like 2 FPS, due to the I2C speed.
Next to steps :
- strong clean-up (i.e: complete rewrite) of the compilation chain,
- platform agnostic : for the moment, there are really un-needed Rasberry / BananaPI references
- API cleaning
- eventually, integration in my own Selene framework to make dashboard creation easier
Anyway, the screen, even very tiny, is clear and readable. Perfect for a simple dashboard on an headless system (like my basement bPI that manage my smart home).
Bye |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Thu Dec 27, 2018 10:57 pm Post subject: |
|
|
Even if I continue with the library above, I discovered 2 kernel modules that can handle these displays :
- one for 1307 but compatible with 1306 seems available for 4.x kernel
- unfortunately, my BananaPI are stick with the old 3.4 kernel (due to some devices for which I don't have DTS) : there is a 1306 driver in staging but seems for SPI only.
|
|
Back to top |
|
|
|