Use SSD1306 OLED screen on the Orange pi zero

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qadzhangc/article/details/90270612

This has been a long time to buy a small server with servers now have a choice this school doing?

 

Solder pin on small objects also play it. . .

While the former is always unsuccessful. . .

 

Until you see this

http://codelectron.com/how-to-setup-oled-display-with-orange-pi-zero-python-ssd1306/

And playing really can drive ah. . .

First things first this orange pi zero is the built-usb ttl

In linux port is ttyACMX X is dependent on a few of your computer case

Then on the line configuration on minicom -s

Know the IP, will be able to SSH, this is not suitable for TTL false graphical interface

First armbian environment before the election I2C interface in interface configuration open in armbian-config

Then you can

apt-get install i2c-tools
i2cdetect -r 0

To see if the correct open I2C

 

We can see the normal I2C continue to see below, otherwise continue to study the open I2c like. . .

Then install dependencies and required libraries

apt install python-pip python-dev  python-pil  gcc make 
python -m pip install --upgrade pip setuptools wheel
pip install OPi.GPIO
git clone https://github.com/codelectron/ssd1306/
 cd ssd1306
 python setup.py install
  pip install Pillow –no-cache-dir
 pip install smbus2 --no-cache-dir

To run

Running sys_info.py 的话要先安装
  pip install psutil

python sys_info.py

 

In short, the manufacturers said yes, GPIO can really use, but really more trouble

 

These are tested on armbian-debian9-server. . . . .

Guess you like

Origin blog.csdn.net/qadzhangc/article/details/90270612