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.0a2.tar.gz (10.9 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.0a2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 f9e189681d6bdd51fce6c2b484f3672eecfe2813fc4c481435ba235b5bc079ae
MD5 9de2ae3c953d78653161827eeeaeeced
BLAKE2b-256 2eca1aeaca882c267aaed4a9686b9441340ab6ecac6d0fb7bd510bb0d57d27d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 dabbb854dd9e0b8ed7a5037c31e79a7500c75b20220c8d77d249caa3dd33792f
MD5 45a9d976f0ec431629d707f5d6285d69
BLAKE2b-256 34cc510698b1a12b11bca7c41bf9a977015bf0a7fa16aa4e3c3cd02747b2c61f

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