Update SSD1306.md
This commit is contained in:
parent
67a689c0c7
commit
c39d88a411
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue