Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I2C LCD screen and Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Mon Dec 17, 2018 2:41 pm    Post subject: I2C LCD screen and Gentoo Reply with quote

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
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sat Dec 22, 2018 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sun Dec 23, 2018 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Thu Dec 27, 2018 10:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum