Dht22
AM2302/DHT22 sensor library written in golang.
Install / Use
/learn @morus12/Dht22README
Greetings do it yourselfers!
It's AM2302/DHT22 library. No external c libraries.
installation
go get github.com/morus12/dht22
usage
import "github.com/morus12/dht22"
sensor := dht22.New("GPIO_17")
temperature, err := sensor.Temperature()
humidity, err := sensor.Humidity()
testing environmnet
- Raspberry Pi 3
- two DHT22 sensors
- go1.7.5 linux/arm
- Raspbian GNU/Linux 8
Pi3 has 64 bit CPU, but system was setup on 32bit. Currently (Feb 2016) there is no official linux/arm64 kernel for Pi 3.
Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
