Differences

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
Last revision Both sides next revision
orangepizero:orangepizero [2017/11/09 00:48]
brett
orangepizero:orangepizero [2017/11/09 00:58]
brett
Line 33: Line 33:
 CPU temp:      53°C CPU temp:      53°C
 Usage of /:    82% of 1.4G Usage of /:    82% of 1.4G
 +</​code>​
 +
 +===== Adding an LCD =====
 +
 +This is the LCD Unit I picked up off ebay - http://​www.ebay.com/​itm/​112411177768
 +
 +{{:​orangepizero:​st7735s.png?​200|}}
 +
 +Wiring as per this: http://​www.instructables.com/​id/​Orange-Pi-Zero-Connect-TFT-SPI-ST7735/​
 +
 +Plumbing the device driver in
 +<​code>​
 +root@orangepizero:​~#​ modprobe fbtft_device name=adafruit18 gpios=reset:​1,​dc:​0,​led:​3 speed=16000000 fps=25 rotate=90 busnum=1
 +root@orangepizero:​~#​ dmesg | tail -20
 +[   ​12.173627] vmouse_input_dev_open
 +[   ​12.231171] vmouse_input_dev_close
 +[   ​19.578663] gmac0: probed
 +[   ​19.579056] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:​00)
 +[   ​19.690572] [STA] !!!xradio_vif_setup:​ id=0, type=2, p2p=0
 +[   ​19.771829] ADDRCONF(NETDEV_UP):​ wlan0: link is not ready
 +[   ​22.570352] PHY: gmac0-0:00 - Link is Up - 100/Full
 +[   ​40.719165] fbtft_device: ​ SPI devices registered:
 +[   ​40.719232] fbtft_device: ​     spidev spi0.0 33000kHz 8 bits mode=0x00
 +[   ​40.719285] fbtft_device: ​     spidev spi1.0 33000kHz 8 bits mode=0x00
 +[   ​40.719326] fbtft_device: ​ '​fb'​ Platform devices registered:
 +[   ​40.719577] fbtft_device:​ Deleting spi1.0
 +[   ​40.721361] fbtft_device: ​ GPIOS used by '​adafruit18':​
 +[   ​40.721410] fbtft_device: ​   '​reset'​ = GPIO1
 +[   ​40.721445] fbtft_device: ​   '​dc'​ = GPIO0
 +[   ​40.721478] fbtft_device: ​   '​led'​ = GPIO3
 +[   ​40.721509] fbtft_device: ​ SPI devices registered:
 +[   ​40.721554] fbtft_device: ​     spidev spi0.0 33000kHz 8 bits mode=0x00
 +[   ​40.721603] fbtft_device: ​     fb_st7735r spi1.0 16000kHz 8 bits mode=0x00
 +[   ​41.656063] graphics fb8: fb_st7735r frame buffer, 160x128, 40 KiB video memory, 4 KiB buffer memory, fps=25, spi1.0 at 16 MHz
 +root@orangepizero:​~#​ fbset -fb /dev/fb8
 +mode "​160x128"​
 +    geometry 160 128 160 128 16
 +    timings 0 0 0 0 0 0 0
 +    nonstd 1
 +    rgba 5/​11,​6/​5,​5/​0,​0/​0
 +endmode
 +root@orangepizero:​~# ​
 +</​code>​
 +To display an image
 +{{ :​orangepizero:​white-sandy-beach-of-the-derawan-islands-wallpaper-160x128-604.jpg|}}
 +<​code>​
 +root@orangepizero:​~#​ apt-get install fbi
 +root@orangepizero:​~#​ fbi -T 1 --noverbose -d /dev/fb8 white-sandy-beach-of-the-derawan-islands-wallpaper-160x128-604.jpg
 +</​code>​
 +See the LCD showing the [[https://​photos.app.goo.gl/​5N7Qz8vrU4jntWQA2|image]]
 +
 +This video clip off of [[https://​www.youtube.com/​watch?​v=UFxYWNF0-oE|you tube]]
 +
 +Easily played to the framebuffer on the LCD.  Watch the [[https://​photos.app.goo.gl/​gNk5eU3wh93iI8SN2|video]]
 +<​code>​
 +# mplayer -vo fbdev:/​dev/​fb8 Formula\ 1\ \(160x128\).mp4
 </​code>​ </​code>​