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.3.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.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robot_hummingbird-0.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 7827f995eb88eb7b08e0c13bea68b616fc2eb3fd315cbc3039d622d4228c4821
MD5 1a82f9042cf5eb2e97c4187fa8f74e77
BLAKE2b-256 929e9c7f41201a5ed2de862da85a6ff6f30ac0f1c98f4ea418b35f3a01705927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robot_hummingbird-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6bed50af0e84d7f912f70fc825274910744d16d9f9dfa12574bc5840b2847bba
MD5 1c0be79f9053fb603f25a684c67f7141
BLAKE2b-256 e2177f11a81f34f12d3ed967a0d4dc951ec8e6a64d8ec4cc4f00e1a10eb0bb8d

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