2021年2月8日 星期一

Raspberry Geekworm 2.2 LCD 設定摘要

LCD 驅動程式
sudo rpi-update
wget https://raw.githubusercontent.com/geekworm-com/22LCD-script/master/screen_setup.sh
chmod +x screen_setup.sh
sudo ./screen_setup.sh

How to turn on/off backlight
sudo rpi-update
sudo apt-get install gcc python-pygame python-dev
sudo wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz
sudo tar zxvf RPi.GPIO-0.5.11.tar.gz
cd RPi.GPIO-0.5.11
sudo python setup.py install

gpio -g mode 27 in
gpio -g mode 27 out

按鈕驅動
sudo apt-get update
sudo apt-get install libudev-dev
sudo apt-get install python-pip
sudo pip install rpi.gpio
sudo pip install python-uinput
sudo modprobe uinput
wget https://raspberrypiwiki.com/File:Python-keys.zip

參考文件
https://raspberrypiwiki.com/2.2_LCD
gpio readall
gpio -v

沒有留言: