This release is a pre-release and may not be stable for production use.
CounterFit Shims - Grove
Shims for the Seeed Grove SI114X sunlight sensor to use with the CounterFit virtual IoT device app.
See the Seeed Python SI114X Docs for the API documentation.
Getting started
To use these shims, you will need to install CounterFit and have it running, with the appropriate hardware created.
-
Install this package from pip:
pip install counterfit-shims-seeed-python-si114x
-
Import the Grove modules as normal, but using the
counterfit_shims_seeed_python_si114xpackage instead of theseeed-python-si114xpackage, as well as importing theCounterFitConnectionfrom thecounterfit_shims_grove.counterfit_connectionmodule:from counterfit_connection import CounterFitConnection from counterfit_shims_seeed_python_si114x import si114x
-
Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:
CounterFitConnection.init('127.0.0.1', 5000)
-
Write your Grove code as usual. The default assumes you hve a light sensor on pin 0, IR on pin 1 and UV on pin 2. You can change these passing additional arguments to the init
sensor =.si114x() light = sensor.ReadVisible() ir = sensor.ReadIR() uv = sensor.ReadUV()
Metadata
Release files for counterfit-shims-seeed-python-si114x 0.1.0.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| counterfit_shims_seeed_python_si114x-0.1.0.dev1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / counterfit_shims_seeed_python_si114x-0.1.0.dev1-py3-none-any.whl
| Download URL | counterfit_shims_seeed_python_si114x-0.1.0.dev1-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b9a433a44a9f9a479c192c157a1dc102c956b9729d47efd16cbac8af4542b94
|
|
BLAKE2b-256 checksum How to use checksums |
bfd39e5b7ae46e276d1a0905a91f9b8c73ab939f5969a2c66871ccd9dc58abbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1
|