当前位置:网站首页>Smart trash can (V) - light up OLED
Smart trash can (V) - light up OLED
2022-07-02 17:17:00 【Light chasing rain】
List of articles
One 、 How to connect

SDA:3 Pin No
SCL:5 Pin No
GND:14 Pin No
VCC:1 Pin No
Two 、 Environmental preparation
2.1 open I2C Pattern
$ sudo apt-get install -y python-smbus
$ sudo apt-get install -y i2c-tools
$ sudo raspi-config
After open the I2C Pattern
2.2 install OLED Screen Python library
$ git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
sudo python -m pip install --upgrade pip setuptools wheel
sudo apt-get remove python-pip python3-pip
sudo apt-get install python-pip python3-pip
install PIL library , Some image processing programs will use this .
sudo apt-get install python-pil python3-pil
Use pip install Adafruit-SSD1306 library .
sudo pip3 install Adafruit_GPIO
sudo pip3 install Adafruit_SSD1306
sudo pip3 install Adafruit_BBIO
Entry directory
cd ~/Adafruit_Python_SSD1306/examples/
3、 ... and 、 Running effect
sudo python3 stats.py
sudo python3 image.py
边栏推荐
猜你喜欢

Believe in yourself and finish the JVM interview this time

Blog theme "text" summer fresh Special Edition

ThreadLocal

Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!

The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?

剑指 Offer 22. 链表中倒数第k个节点

社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东

【Leetcode】13. Roman numeral to integer

Seven charts, learn to do valuable business analysis

深度之眼(三)——矩阵的行列式
随机推荐
2、 Expansion of mock platform
Use of openpose
一年顶十年
How openharmony starts FA of remote devices
Interpretation of key parameters in MOSFET device manual
<四> H264解码输出yuv文件
【Leetcode】14. 最长公共前缀
上传代码到远程仓库报错error: remote origin already exists.
Sword finger offer 25 Merge two sorted linked lists
vscode设置删除行快捷键[通俗易懂]
DigiCert SSL证书支持中文域名申请吗?
【Leetcode】13. 罗马数字转整数
剑指 Offer 26. 树的子结构
jsp 和 servlet 有什么区别?
Deep learning image data automatic annotation [easy to understand]
R and rstudio download and installation tutorial (super detailed)
< IV & gt; H264 decode output YUV file
易语言abcd排序
P6774 [noi2020] tears in the era (block)
Role and function of uboot