
The advantage of mounting on top of CSI-2 connector is, that the plastic connector avoids any electric shortcuts between camera and Zero boards. I thought this might be useful to have for others as well,
Hermann.
Code: Select all
pi@raspberrypi:~ $ tail -5 /etc/rc.local
fi
/home/pi/stream.fb1 &
exit 0
pi@raspberrypi:~ $ cat stream.fb1
#!/bin/bash
sudo modprobe fbtft_device name=rpi-display gpios=reset:25,dc:24,led:27 rotate=90
sleep 1
sudo tail --bytes 153600 /home/pi/giraffe.565 > /dev/fb1
sudo modprobe bcm2835-v4l2
sleep 2
sudo gst-launch-1.0 -v v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw,width=320,height=240 ! videoconvert ! fbdevsink device=/dev/fb1 2>&1 >/dev/null
pi@raspberrypi:~ $
Code: Select all
...ight=240 ! edgetv ! videoconvert ! fb...
Code: Select all
...
dtparam=spi=on
dtoverlay=spi1-3cs
...
dtoverlay=rpi-displa0
dtparam=rotate=90
...
Code: Select all
pi@raspberrypi:~ $ tail -11 /etc/rc.local
fi
tail --bytes 153600 /home/pi/fb1.565.bmp> /dev/fb1
sleep 1
sudo modprobe fbtft_device name=rpi-display gpios=reset:13,dc:26,led:28 rotate=270 cs=2 busnum=1
tail --bytes 153600 /home/pi/fb2.565.bmp> /dev/fb2
sudo gst-launch-1.0 -v v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw,width=320,height=240,framerate=10/1 ! tee name=t ! queue ! edgedetect ! videoconvert ! fbdevsink device=/dev/fb1 t. ! clockoverlay shaded-background=true font-desc="Sans, 48" ! videoconvert ! fbdevsink device=/dev/fb2 2>&1 > /dev/null
exit 0
pi@raspberrypi:~ $
Code: Select all
pi@raspberrypi:~ $ tail -1 /etc/modules-load.d/modules.conf
bcm2835-v4l2
pi@raspberrypi:~ $