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.0a3.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.0a3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 bc0ba55eb283a6e1a5f8d563e67d8d5dee0d0881e7772526859baf2ffdba62af
MD5 ad530a1b639bf7f41920cdaf16039dec
BLAKE2b-256 fbf5af7dcb144c77ae4e55e00224a17e2c0a62746a8a3d7e13a6e2a0a750b0a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harp_cameracontroller-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc27a5eee25fc66f0ed43711ad313ffca4f49eb72bab3c99d2e152f3dbc8df46
MD5 fb86e3bfa9e911a1dc759687c01c6368
BLAKE2b-256 c9b02bc67c9bf74414fc007437473a05a78e0c42a4db718b1d9bc15000beea7a

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