User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:oled [2015/01/16 17:52]
wiki:oled [2019/05/28 11:22] (current)
Line 20: Line 20:
   * OLED_RES# -> D4 Pin Linino ONE   * OLED_RES# -> D4 Pin Linino ONE
   * GND -> GND Pin Linino ONE   * GND -> GND Pin Linino ONE
 To register your display oled use the following command: To register your display oled use the following command:
 +<code bash>
 +root@linino:​~#​ echo dogoled > /​sys/​devices/​mcuio/​shield_register
-''​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
- +<code bash> 
-To write an image to framebuffer execute ​the following command+root@linino:​~# ​cat linino_log.1bpp ​> /dev/fb0 
- +</​code>​ 
-''​cat “image” ​> /dev/fb0''​+You can download demo monochrome images [[http://​​lib/​exe/​fetch.php?​media=linino_log_oled.7z | here]]
 +If you want to display your custom png image on the oled screen use our [[http://​​lib/​exe/​fetch.php?​ | png2mono]] tool.
 +To install png2mono follows this steps:
 +<code bash>
 +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 :
 +<code bash>
 +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 :
 +<code bash>
 +root@linino:​~#​ cat monochrome_image.1bpp > /dev/fb0
wiki/oled.txt · Last modified: 2019/05/28 11:22 (external edit)