Update SSD1306.md

This commit is contained in:
aiminick 2021-07-19 15:55:34 +08:00 committed by GitHub
parent 67a689c0c7
commit c39d88a411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -52,21 +52,21 @@ dtparam=i2c_arm=on
#### (3). Install
```
apt-get install python-pip python3-pip -y
python -m pip install --upgrade pip setuptools wheel
apt-get install python-pil python3-pil -y
pip install Adafruit_GPIO
pip install Adafruit_SSD1306
pip install Adafruit_BBIO
sudo apt-get install python-pip python3-pip -y
sudo python -m pip install --upgrade pip setuptools wheel
sudo apt-get install python-pil python3-pil -y
sudo pip install Adafruit_GPIO
sudo pip install Adafruit_SSD1306
sudo pip install Adafruit_BBIO
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
sudo python setup.py install
pip install RPi.GPIO
sudo pip install RPi.GPIO
cd Adafruit_Python_SSD1306/examples/
cp Adafruit_Python_SSD1306/examples/stats.py /opt/
python /opt/stats.py
sudo python /opt/stats.py
```
#### (4). stats.py