- 更新库
sudo apt-get install -y python-imaging python-smbus i2c-tools
- 查找地址
i2cdetect -y 1
- 克隆库
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
cd Adafruit_Python_SSD1306
sudo python setup.py install
- 运行测试
cd examples/
sudo python stats.py