Skip to main content

Python SDK for hiwonder TurboPi device communication

Project description

Stand With Ukraine

Fast Wonder SDK

The Fast Wonder SDK is a Python library that facilitates communication with the Hiwonder TurboPi controller. It provides easy-to-use functions for controlling various peripherals such as RGB LEDs, buzzers, infrared sensors, and more, while ensuring reliable communication with checksum validation using CRC-8.

Features

  • Control RGB LEDs: Easily control the colors of RGB LEDs using indexed tuples.
  • Control BUZZER: Simple API to control the buzzer.
  • Control Infrared Sensors: Interface with infrared sensors to detect obstacles or follow lines.
  • Reliable Communication: Ensures data integrity with CRC-8 checksum validation for communication.
  • Configurable Serial Communication: Adjust serial communication parameters such as baud rate, timeout, etc.

Installation

To get started with Fast Wonder SDK, follow these steps:

  1. Clone the repository:
    git clone https://github.com/dmberezovskyii/fast-hiwonder.git
    

Usage

  1. Infra red sensors
    from fast_hi_wonder import InfraredSensors
    
    # Initialize the sensor with the default I2C address and bus
    sensors = InfraredSensors()
    
    # Read sensor data
    sensor_states = sensors.read_sensor_data()
    
    # Process sensor states
    for i, state in enumerate(sensor_states):
        print(f"Sensor {i+1} is {'active' if state else 'inactive'}")
    

Stand With Ukraine

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

turbopi_fast_sdk-0.2.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

turbopi_fast_sdk-0.2.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file turbopi_fast_sdk-0.2.2.tar.gz.

File metadata

  • Download URL: turbopi_fast_sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for turbopi_fast_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a3d93cbf1cc900ba936031e1f05a09c29469135eee0cd33688e3e5792b410eec
MD5 c70c84ddccdc572ac7b5783fdb2ac60b
BLAKE2b-256 69538ab41c77ddc0d48d4ef48d4247458ca1b6d787b53cc877e31bafccba2e7a

See more details on using hashes here.

File details

Details for the file turbopi_fast_sdk-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for turbopi_fast_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89d0ba5323aab0a43272683c9d7a2730c6e00f5fad87eaec51ea44d94e7b3c9c
MD5 fb28298d64c8b5ce22d4190c91900028
BLAKE2b-256 cf73d30705d4816281131bae8ea3b5acd7c706b60ab3c3eede866ff3f3c19bc3

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