An API interface to the internal sensors of the Blues Wireless Notecard
Project description
NotecardPseudoSensor
NotecardPseudoSensor provides an API interface to the internal sensors of the Blues Wireless Notecard. The goal of this abstraction is to offer a sensor to use with more advanced tutorials, which enables focus on basic Notecard transactions for those new to the platform.
Installation
With pip
via PyPi:
pip install notecard-pseudo-sensor
or
pip3 install notecard-pseudo-sensor
Usage
import notecard
import notecard_pseudo_sensor
# How you connect to the Notecard varies based on your platform.
# See the note below.
from periphery import I2C
port = I2C("/dev/i2c-1")
card = notecard.OpenI2C(port, 0, 0)
sensor = notecard_pseudo_sensor.NotecardPseudoSensor(card)
print(sensor.temp())
print(sensor.humidity())
NOTE: The way you create the
port
andcard
differs based on platform. For details, check out thenote-python
usage documentation, which contains examples.
To learn more about Blues Wireless, the Notecard and Notehub, see:
License
Copyright (c) 2021 Blues, Inc. Released under the MIT license. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for notecard-pseudo-sensor-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 777828217f9a2afbb5c4c040c387c9aa319ea045d661fc29bc3fb3da86f4de5c |
|
MD5 | e713db37cbe1ca9031a421f0c109dbe6 |
|
BLAKE2b-256 | 519ba5a67b8f65416eddd094649bf37112dfdc48d612c837933d73461b613ee1 |
Close
Hashes for notecard_pseudo_sensor-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5394c30066e1fde47f855650aa257743a32e1a28a9d0a1628bb3cc077071a78 |
|
MD5 | 9e8defa84a2b87f9bf0cd9c08faf1856 |
|
BLAKE2b-256 | 0b61ead74725f7d7d8140ef6f9629725f7ab9b0ba8d185ebb873be535647b3b8 |