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

Uploaded Python 3

File details

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

File metadata

  • Download URL: robot_hummingbird-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 fb8873a2bfd63cdfb4951a8a2a834f84d12b76a6f465e0b875440ea1beea6662
MD5 8dd40cca8c95cda86b6d21f359051d32
BLAKE2b-256 62a77af313bb3dc01a15b05942428a9133ff6303ad58f3b22bd3438295685546

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robot_hummingbird-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e48bd1293c2a4b9aa3d58d206cf448bc9be5f6c2996404cf8ba489c66ed0090
MD5 20d6d3802149ae9f95f83627b5cc4abb
BLAKE2b-256 c48b1f32d3191829e8e8e6d56e0ea7cfa34d9e271043f12ff8b6310f889a04c1

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