RetroPie With WaveShare 3.5inch RPi LCD(A)

RetroPie image + WaveShare LCD 3.5(A)

git clone https://github.com/swkim01/waveshare-dtoverlays.git
sudo cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays/
sudo nano /boot/config.txt
加在/boot/config.txt最下面2行
dtparam=spi=on
dtoverlay=waveshare35a
reboot

reboot後檢查
ls /dev/fb*
如果有發現/dev/fb0跟/dev/fb1
那/dev/fb1就是3.5LCD了

編譯fbcp
sudo apt-get install cmake
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
sudo nano /etc/rc.local
在exit 0  前面加入
/usr/local/bin/fbcp &
存檔完reboot
就可以了
如果買的是3.2b 把上面35a都改成32b即可
git抓下只有這兩款 ,  如果是4吋的不知道能不能用
完成後ssh連不進去 , 應該是輸出的問題 . 我沒研究 ...

官網的驅動
https://github.com/MCUapps/waveshare-3.5-Spotpear-for-Rpi
裡面的方法對RetroPie的image會有rpi-update出現ca的錯誤裝不起來

參考
https://retropie.org.uk/forum/topic/295/retropie-and-waveshare-32b/2


另一方法
modprobe flexfb  width=320  height=480  regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
modprobe fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24

留言

Unknown寫道…
Hi,

Thanks for the clear tutorial. Did you manage to have a good framerate with this screen. I'm trying but cannot find the right configuration (even with speed=4000000)

Bye
Ben
Do you use WaveShare 3.5inch RPi LCD(A)?
Unknown寫道…
Yes I use the Waveshare 3.5inch RPi LCD(A)
try speed=27000000

or other official referece :
http://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)

這個網誌中的熱門文章

WaveShare LCD22A