2024-03-27 06:24:05 +08:00
..
2024-03-27 06:24:05 +08:00
2024-03-27 06:24:05 +08:00

i2c python3

  1. 必须安装
apt install -y fonts-wqy-microhei fonts-wqy-zenhei
apt install -y i2c-tools libgpiod-dev
apt install -y python3-pip python3-pil python3-libgpiod
pip3 install adafruit-circuitpython-ssd13060 --break-system-packages
  1. 调试
python3 ./status.py
  1. rc-local
vim /etc/rc.local
# 在 exit 0 之前添加
python3 /home/yong/i2c.py/status.py &