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.0a1.tar.gz (10.6 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.0a1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 c8e3ccc02d4ff79c0e0897faef530d22961625b3fa93c96f7a3f6aa8284a49cb
MD5 0a7910aab06395be7ed0f3be22aa636d
BLAKE2b-256 09095e0669b0322454e0cd10efbd6638b4e7fb195f202c01ba32d82d33c3e4e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c84947e1e20d63b1a715e73294e89a933e51384aa148f201233d783ce938d33
MD5 e3095e5b28243258f8a37ecd2f8ef8ed
BLAKE2b-256 520da57cb36d93bd5a7bea06463b972346e273a28f9b4185cb17cf00375b941c

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