Skip to main content

Control the MSN i-Buddy USB figure from Python

Project description

ibuddy

Control your MSN i-Buddy USB figure from Python.

Install

pip install ibuddy

Quick Start

from ibuddy import IBuddyDevice

with IBuddyDevice() as buddy:
    buddy.demo()
    buddy.head_color("red")
    buddy.flap(5)
    buddy.heartbeat(3)

Available Colors

red, green, blue, cyan, magenta, yellow, white

What Can It Do?

Method Description
head_color(name) Set head LED to a named color
heart(on) Turn the heart LED on/off
flap(times) Flap the wings N times
wiggle(times) Swivel torso left/right N times
heartbeat(times) Blink the heart LED N times
rainbow(times) Cycle through all 7 colors
celebrate() Party mode: wiggle + flap + heartbeat + rainbow
demo() Full demo of all features
reset() Turn everything off

All action methods accept times and delay/duration parameters for fine control.

Context Manager

Always use with to ensure the device is properly reset when done:

with IBuddyDevice() as buddy:
    buddy.head_color("blue", duration=1.0)
    buddy.flap(3)
# Automatically resets and closes

Platform

Windows only - The i-Buddy uses Windows HID APIs for communication.

License

MIT

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

ibuddy-1.0.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

ibuddy-1.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ibuddy-1.0.0.tar.gz.

File metadata

  • Download URL: ibuddy-1.0.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ibuddy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 37d16d589bb051dc91bd0f602a9cffc2af44493c496d1566c8a03ede334a048e
MD5 a7b7ce0f190cfb9f237afee8984b6af9
BLAKE2b-256 b4158c754630334bc27cd6dc9e43889f71b6b2eb6d0e8aff9feb76d7f06d6b14

See more details on using hashes here.

File details

Details for the file ibuddy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ibuddy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for ibuddy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa637972100c82b3b447dd42d76e4c962d2805f58bf62d516dbaa0dd4a928e1f
MD5 7caed9f9012982ae89555cdfe4317be9
BLAKE2b-256 f9ea88ddeb54ffbe27c554d4bbba1e58d84b38adc0fefadd6d8a67d5f82fda62

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