mirror of
https://github.com/nupplaphil/pySM9541
synced 2025-04-19 21:04:05 +02:00
SM9541 Python Library (Mirror)
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| SM9541.py | ||
| SM9541_Example.py | ||
SM9541 Python library
This Python library allows you to read data from the SM9541 Ultra-Low Pressure Digital Sensor on a Raspberry Pi, Pi2 or similar device. Requirements
This library requires that you have installed the smbus-library
On Raspbian, you can install this package with the following commands:
sudo apt-get update sudo apt-get install python-smbus
Usage
To read a single set of data points from the SME9541, connect your Pi or Pi2 to the SM9541 breakout using I2C and run the following command from this folder:
python SM9541_Example.py