当前位置:网站首页>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
边栏推荐
- 电脑自带软件使图片底色变为透明(抠图白底)
- 上传代码到远程仓库报错error: remote origin already exists.
- lsf基础命令
- Day 18 of leetcode dynamic planning introduction
- Timing / counter of 32 and 51 single chip microcomputer
- In MySQL and Oracle, the boundary and range of between and precautions when querying the date
- 2、 Expansion of mock platform
- 酒仙网IPO被终止:曾拟募资10亿 红杉与东方富海是股东
- Serial port controls steering gear rotation
- Xiaopeng P7 had an accident on rainy days, and the airbag did not pop up. Official response: the impact strength did not meet the ejection requirements
猜你喜欢

Notice on holding a salon for young editors of scientific and Technological Journals -- the abilities and promotion strategies that young editors should have in the new era

綠竹生物沖刺港股:年期內虧損超5億 泰格醫藥與北京亦莊是股東
![[essay solicitation activity] Dear developer, RT thread community calls you to contribute](/img/31/11409606718e0f4837f4cc572172a3.png)
[essay solicitation activity] Dear developer, RT thread community calls you to contribute

How to transfer business data with BorgWarner through EDI?

移动应用性能工具探索之路

Blog theme "text" summer fresh Special Edition

【Leetcode】14. Longest Common Prefix

QWebEngineView崩溃及替代方案

Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers

剑指 Offer 22. 链表中倒数第k个节点
随机推荐
绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
Amazon cloud technology community builder application window opens
JS delete substring in string
[cloud native] briefly talk about the understanding of flume, a massive data collection component
易语言abcd排序
MOSFET器件手册关键参数解读
AP and F107 data sources and processing
< IV & gt; H264 decode output YUV file
Interpretation of key parameters in MOSFET device manual
【Leetcode】13. 罗马数字转整数
How to transfer business data with BorgWarner through EDI?
配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)
ThreadLocal
The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
Atcoder beginer contest 169 (B, C, D unique decomposition, e mathematical analysis f (DP))
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
2020 "Lenovo Cup" National College programming online Invitational Competition and the third Shanghai University of technology programming competition (a sign in, B sign in, C sign in, D thinking +mst
【Leetcode】14. 最長公共前綴
lsf基础命令
七张图,学会做有价值的经营分析