树莓派使用128*64 0.9寸LCD(I2C)

  • 更新库
sudo apt-get install -y python-imaging python-smbus i2c-tools
  • 查找地址
i2cdetect -y 1
  • 树莓派使用128*64 0.9寸LCD(I2C)_第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

你可能感兴趣的:(树莓派使用128*64 0.9寸LCD(I2C))