Shims for the Seeed Grove sensors for the CounterFit virtual IoT device app
CounterFit Shims - Grove
Shims for the Seeed Grove sensors and actuators to use with the CounterFit virtual IoT device app.
See the Grove Py Docs for the API documentation.
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-grove
Import the Grove modules as normal, but using the
counterfit_shims_grovepackage instead of the
grovepackage, as well as importing the
from counterfit_connection import CounterFitConnection from counterfit_shims_grove.grove_light_sensor_v1_2 import GroveLightSensor from counterfit_shims_grove.grove_led import GroveLed
Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:
Write your Grove code as usual, setting the pins to match the ones you set in the CounterFit app:
light_sensor = GroveLightSensor(2) sensor_value = light_sensor.light
Not all the Grove sensor and actuators are currently implemented:
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for counterfit_shims_grove-0.1.4.dev5-py3-none-any.whl