Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CounterFit Shims - Grove

Grove Shim PyPI

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.

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 telegen-shims-grove
    
  • Import the Grove modules as normal, but using the counterfit_shims_grove package instead of the grove package, as well as importing the TeleGenConnection from the counterfit_shims_grove.counterfit_connection module:

    from counterfit_connection import TeleGenConnection
    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:

    TeleGenConnection.init('127.0.0.1', 5000)
    
  • 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
    

Implemented shims

Not all the Grove sensor and actuators are currently implemented:

Sensor/Actuator
grove_led
grove_light_sensor_v1_2

Metadata

Release files for telegen-shims-grove 0.1.4.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegen-shims-grove 0.1.4.dev6
File Size Uploaded
telegen_shims_grove-0.1.4.dev6.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for telegen-shims-grove 0.1.4.dev6
File Interpreter ABI Platform
telegen_shims_grove-0.1.4.dev6-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / telegen_shims_grove-0.1.4.dev6.tar.gz

Download URL telegen_shims_grove-0.1.4.dev6.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
57f0e4ef14f90945209b58032061772d01cdb685d33ebe36e83fdbde57563c34
BLAKE2b-256 checksum
How to use checksums
83c76d0410ebc51bfb30b7c87e553340bbcf93afb27174cdb9bf8b2e5132822e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / telegen_shims_grove-0.1.4.dev6-py3-none-any.whl

Download URL telegen_shims_grove-0.1.4.dev6-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
028c9782da5b3359aeea0b40dfc49f3ece2aa224300c13b287c2cf7d16d2a5d5
BLAKE2b-256 checksum
How to use checksums
cf97c14cf618b79d49ebd73afca8f7178bab50c6e2d448b923b9b55a0a850eb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.4.dev6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page