johanoskarsson / SDL_Pi_AM2315

Pure Python software for the SwitchDoc Labs AM2315 / Python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDL_Pi_AM2315

AM2315 Pure Python Library

SwitchDoc Labs March 2019

Version 1.6: August 12, 2019 - Added adasmbus and improved I2C reliablity
Version 1.5: June 6, 2019 - Moved to adasmbus and improved I2C reliablity
Version 1.4: March 30, 2019 - Added PowerSave capability and improved temperature detection
Version 1.3: February 6, 2019 - increased MaxRetries to 10 per Sopwith - Updated to Python 3
Version 1.2: November 26, 2018 - Added bad data filter, now can return statistics good, bad reads, bad CRC
Version 1.1: November 14, 2018 - Added CRC Check. Now returns -1 in CRC on CRC Fail

#Introduction This is a pure python AM2315 library to replace the tentacle_pi C based library

For the SwitchDoc Labs AM2315
https://shop.switchdoc.com/products/grove-am2315-encased-i2c-temperature-humidity-sensor-for-raspberry-pi-arduino

#Installation

Place files in program directory

testing

import AM2315 
sens = AM2315.AM2315()
print sens.read_temperature()
print sens.read_humidity()
print sens.read_humidity_temperature()
print sens.read_humidity_temperature_crc()

About

Pure Python software for the SwitchDoc Labs AM2315 / Python 3

License:MIT License


Languages

Language:Python 100.0%