Skip to main content

Hummingbird general python support (dual motor controllers).

Project description

docs

Documentation Status

package

PyPI Package latest release PyPI Wheel Supported versions

Hummingbird general python support (dual motor controllers).

  • Free software: MIT License

Installation

pip install robot-hummingbird

You can also install the in-development version with:

pip install https://github.com/fmorton/robot-python-hummingbird/archive/main.zip

Motor Driver Example with a Birdbrain Hummingbird

from robot.hummingbird import Hummingbird
from robot.hummingbird_l298n_dual_motor_driver import HummingbirdL298nDualMotorDriver
from time import sleep

hummingbird = Hummingbird()

hummingbird_motors = HummingbirdL298nDualMotorDriver(hummingbird)

hummingbird_motors.move_left_motor(40)  # left motor forward
sleep(1.0)
hummingbird_motors.move_left_motor(0)  # stop left motor

hummingbird_motors.move_right_motor(-40)  # right motor backwards
sleep(1.0)

hummingbird_motors.move(50, 50)  # move both motors forward
sleep(1.0)

hummingbird_motors.stop()

Testing

To run all the tests run:

pytest

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

robot_hummingbird-0.3.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

robot_hummingbird-0.3.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file robot_hummingbird-0.3.4.tar.gz.

File metadata

  • Download URL: robot_hummingbird-0.3.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for robot_hummingbird-0.3.4.tar.gz
Algorithm Hash digest
SHA256 75b78cf3ad18b224d914668fa891a9b466395a1edd30b9290a4fffaa8826535e
MD5 dbc843001196c280ea145b0308cb7dac
BLAKE2b-256 13d6d4c1005a6f4864486a6f4c7b5090a67a604610b7ced064e66a817cfa7552

See more details on using hashes here.

File details

Details for the file robot_hummingbird-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for robot_hummingbird-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 783f9c6e5ba5b0e85e4a24c3f67e8117d0adca06004255c73e909be6a50d26aa
MD5 251e3287906df2fa7c9aac8717124e8c
BLAKE2b-256 05ea6e0c80ba8f43d108a106909b714205a33c308cd0a583e3bb541cd4929ccd

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