当前位置:网站首页>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
边栏推荐
- 默认浏览器设置不了怎么办?
- C语言自定义函数的方法
- Geoserver: publishing PostGIS data sources
- Detailed explanation of @accessories annotation of Lombok plug-in
- VMware install win10 image
- AP and F107 data sources and processing
- PWM controlled steering gear
- 上传代码到远程仓库报错error: remote origin already exists.
- 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
- The computer comes with software to make the background color of the picture transparent (matting white background)
猜你喜欢

Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
![[shutter] dart data type (dynamic data type)](/img/6d/60277377852294c133b94205066e9e.jpg)
[shutter] dart data type (dynamic data type)

亚马逊云科技 Community Builder 申请窗口开启

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

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

【Leetcode】14. 最长公共前缀

Amazon cloud technology community builder application window opens

Use the API port of the bridge of knowledge and action to provide resources for partners to access

871. Minimum refueling times

TCP拥塞控制详解 | 2. 背景
随机推荐
IP地址转换地址段
Domestic relatively good OJ platform [easy to understand]
剑指 Offer 26. 树的子结构
Interpretation of key parameters in MOSFET device manual
綠竹生物沖刺港股:年期內虧損超5億 泰格醫藥與北京亦莊是股東
【Leetcode】14. Longest Common Prefix
LSF basic command
Leetcode1380: lucky numbers in matrix
ETH数据集下载及相关问题
PWM controlled steering gear
七张图,学会做有价值的经营分析
Win10系统使用pip安装juypter notebook过程记录(安装在系统盘以外的盘)
C语言中sprintf()函数的用法
PhD battle-11 preview | review and prospect backdoor attack and defense of neural network
使用知行之桥的API端口,提供资源供合作伙伴访问
一年頂十年
Atcoder beginer contest 169 (B, C, D unique decomposition, e mathematical analysis f (DP))
13、Darknet YOLO3
Use the API port of the bridge of knowledge and action to provide resources for partners to access
剑指 Offer 24. 反转链表