User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:oled

How to connect an OLED screen with a Linino One board

To use an OLED screen with Linino One, you must use the Level Shifters. The Level Shifter is connected with Linino One and OLED, as you see in the picture below.

Link from Level shifter to Linino One:

  • VCCA → 5V Pin Linino One
  • VCCB → 3.3V Pin Linino One
  • A1 → D3 Pin Linino One (SCL)
  • A2 → D2 Pin Linino One (SDA)
  • OE → 5V Pin Linino One
  • GND → GND

Link from Level shifter to OLED:

  • B1→ SCL_3V3 Oled
  • B2 → SDA_3V3 Oled

Link from OLED to Linino ONE:

  • OLED_RES# → D4 Pin Linino ONE
  • GND → GND Pin Linino ONE

To register your display oled use the following command:

root@linino:~# echo dogoled > /sys/devices/mcuio/shield_register

To display an image on the oled screen, send a data stream of monochrome image to the framebuffer as follows:

root@linino:~# cat linino_log.1bpp > /dev/fb0

You can download demo monochrome images here

If you want to display your custom png image on the oled screen use our png2mono tool. To install png2mono follows this steps:

root@linino:~# opkg update
root@linino:~# opkg install png2mono_1.0.0-5_ar71xx.ipk

Then, to generate a monochrome image from your custom image run this command :

root@linino:~# png2mono custom_image.png monochrome_image.1bpp

Now you should be able to display your custom image with a simple 'cat' of the image itself :

root@linino:~# cat monochrome_image.1bpp > /dev/fb0
/var/www/wiki.linino.org/data/pages/wiki/oled.txt · Last modified: 2015/01/17 09:29 by andrea

2014 © dog hunter llc and the Linino Community. Linino.org is a dog hunter sponsored community project. Credits