Skip to main content

This is a generated Harp device Python interface that interacts with the Harp protocol.

Project description

harp.cameracontroller

PyPI

This is a generated Harp device Python interface that interacts with the Harp protocol.

Installation

You can install the package using uv or pip:

uv add harp.cameracontroller

or

pip install harp.cameracontroller

Usage example

from harp.protocol import OperationMode
from harp.devices.cameracontroller import CameraController

# Example usage of the CameraController device
with CameraController("/dev/ttyUSB0") as device: # For Windows, use "COM8" or similar
    device.info()

    # Set the device to active mode
    device.set_mode(OperationMode.ACTIVE)

    # Get the events
    try:
        while True:
            for event in device.get_events():
                # Do what you need with the event
                print(event.payload)
    except KeyboardInterrupt:
        # Capture Ctrl+C to exit gracefully
        print("Exiting...")
    finally:
        # Do what you need to do to clean up. Disconnect is automatically called with the "with" statement.
        pass

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harp_cameracontroller-0.1.0a4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harp_cameracontroller-0.1.0a4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file harp_cameracontroller-0.1.0a4.tar.gz.

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 ae4a4bf127dc722cad740ee32733a55258116af70e6b119857339c3e27fd8c48
MD5 c4735ea5ba76f68818a6dfdec19c586c
BLAKE2b-256 fbcef7d3aedc7e8fbfac8bb35c46fb4b81f6584e9575c4f503825c934d3dbfbf

See more details on using hashes here.

File details

Details for the file harp_cameracontroller-0.1.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 a979828a0c29747482169ecb74df0815d319e01991d39553e63275c06b2f5dd5
MD5 acffda98425c9a8a500cfdd980a3ea14
BLAKE2b-256 2afa4bed45ad75bb8a644e610f18d1c2d94f4a4d59d30d131f878e5c4be933d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page