Adafruit Python DHT Sensor Library
==================================
Python library to read the DHT series of humidity and temperature sensors on a
Raspberry Pi or Beaglebone Black.
Designed specifically to work with the Adafruit DHT series sensors ---->
https://www.adafruit.com/products/385
Currently the library is tested with Python 2.6, 2.7, 3.3 and 3.4. It should
work with Python greater than 3.4, too.
Installing
----------
### Dependencies
For all platforms (Raspberry Pi and Beaglebone Black) make sure your system is
able to compile and download Python extensions with **pip**:
On Raspbian or Beaglebone Black's Debian/Ubuntu image you can ensure your
system is ready by running one or two of the following sets of commands:
Python 2:
````sh
sudo apt-get update
sudo apt-get install python-pip
sudo python -m pip install --upgrade pip setuptools wheel
````
Python 3:
````sh
sudo apt-get update
sudo apt-get install python3-pip
sudo python3 -m pip install --upgrade pip setuptools wheel
````
### Install with pip
Use `pip` to install from PyPI.
Python 2:
```sh
sudo pip install Adafruit_DHT
```
Python 3:
```sh
sudo pip3 install Adafruit_DHT
```
### Compile and install from the repository
First download the library source code from the [GitHub releases
page](https://github.com/adafruit/Adafruit_Python_DHT/releases), unzipping the
archive, and execute:
Python 2:
```sh
cd Adafruit_Python_DHT
sudo python setup.py install
```
Python 3:
```sh
cd Adafruit_Python_DHT
sudo python3 setup.py install
```
You may also git clone the repository if you want to test an unreleased
version:
```sh
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
```
Usage
-----
See example of usage in the examples folder.
Author
------
Adafruit invests time and resources providing this open source code, please
support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Tony DiCola for Adafruit Industries.
MIT license, all text above must be included in any redistribution
没有合适的资源?快使用搜索试试~ 我知道了~
树莓派oled屏幕驱动代码
共107个文件
py:22个
sample:20个
c:12个
需积分: 50 34 下载量 123 浏览量
2019-11-29
18:15:16
上传
评论 3
收藏 266KB ZIP 举报
温馨提示
树莓派驱动ssd1306 oeld屏幕显示温度,ip地址,日期,用dht11检测温度,oled屏幕是ssd1306芯片
资源推荐
资源详情
资源评论
收起资源包目录
树莓派oled屏幕驱动代码 (107个子文件)
pi_2_dht_read.c 5KB
pi_dht_read.c 5KB
bbb_dht_read.c 5KB
_Beaglebone_Black_Driver.c 3KB
_Raspberry_Pi_2_Driver.c 3KB
_Raspberry_Pi_Driver.c 3KB
bbb_mmio.c 3KB
pi_2_mmio.c 3KB
_Test_Driver.c 3KB
common_dht_read.c 2KB
pi_mmio.c 2KB
test_dht_read.c 1KB
config 280B
config 276B
description 73B
description 73B
Adafruit_SSD1306-1.6.2-py2.7.egg 9KB
exclude 240B
exclude 240B
.gitignore 47B
.gitignore 36B
bbb_mmio.h 3KB
pi_2_mmio.h 2KB
pi_mmio.h 2KB
common_dht_read.h 2KB
bbb_dht_read.h 2KB
pi_2_dht_read.h 2KB
pi_dht_read.h 2KB
test_dht_read.h 1KB
HEAD 194B
HEAD 194B
HEAD 190B
HEAD 190B
HEAD 32B
HEAD 32B
HEAD 23B
HEAD 23B
pack-cf7e8ee6865adc062e51766142314d97e4a137fa.idx 9KB
pack-a23d2a65c689a2484935097ca4e9a8fddd129341.idx 5KB
MANIFEST.in 45B
index 4KB
index 1KB
LICENSE 1KB
LICENSE 1KB
master 194B
master 190B
master 41B
master 41B
ISSUE_TEMPLATE.md 3KB
ISSUE_TEMPLATE.md 3KB
README.md 2KB
PULL_REQUEST_TEMPLATE.md 1KB
PULL_REQUEST_TEMPLATE.md 1KB
README.md 907B
pack-cf7e8ee6865adc062e51766142314d97e4a137fa.pack 92KB
pack-a23d2a65c689a2484935097ca4e9a8fddd129341.pack 39KB
packed-refs 644B
packed-refs 286B
PKG-INFO 2KB
happycat_oled_64.ppm 24KB
happycat_oled_32.ppm 12KB
SSD1306.py 15KB
SSD1306.py 15KB
buttons.py 6KB
Beaglebone_Black.py 6KB
google_spreadsheet.py 6KB
stats2.py 5KB
setup.py 5KB
stats.py 5KB
platform_detect.py 4KB
common.py 4KB
animate.py 4KB
shapes.py 4KB
image.py 2KB
AdafruitDHT.py 2KB
simpletest.py 2KB
Raspberry_Pi.py 2KB
Raspberry_Pi_2.py 2KB
Test.py 2KB
setup.py 1KB
__init__.py 1KB
__init__.py 23B
__init__.py 23B
pre-rebase.sample 5KB
pre-rebase.sample 5KB
update.sample 4KB
update.sample 4KB
pre-commit.sample 2KB
pre-commit.sample 2KB
pre-push.sample 1KB
pre-push.sample 1KB
prepare-commit-msg.sample 1KB
prepare-commit-msg.sample 1KB
commit-msg.sample 896B
commit-msg.sample 896B
pre-receive.sample 544B
pre-receive.sample 544B
applypatch-msg.sample 478B
applypatch-msg.sample 478B
pre-applypatch.sample 424B
共 107 条
- 1
- 2
资源评论
lionwerson
- 粉丝: 1175
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功