Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.37 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.37 KB

bleak-dash

An unofficial bleak powered cross platform python library for controlling Wonder Workshop's Dash robot.

NOTICE:

Adapted from original source code Copyright 2016 Ilya Sukhanov https://github.com/IlyaSukhanov/morseapi & updated code Copyright 2018 Russ Buchanan https://github.com/havnfun/python-dash-robot

Key differences:

  • Changed backend from pygatt to bleak
  • Compatible with Python 3.11
  • Cross Platform
  • Asynchronous

Motivation

I wanted to use my kids dash robot from my Mac or my Windows machine without reinventing the wheel.

Compatibility

Using Bleak we should be Windows / Mac / Linux agnostic. Please let me know if any issues. Tested on M1 & Windows

Getting Started

git clone https://github.com/mewmix/bleak-dash
cd bleak-dash
pip install -e . 

Tests

python tests/lightshow_random.py  

Library Quick Start

import asyncio
from dash.robot import DashRobot, discover_and_connect

async def main():
    robot = await discover_and_connect()
    if robot:
        print(f"Connected to {robot.address}")
        # Example command to move Dash
        await robot.move(100, 100)  # Move forward 100mm at 100mm/s
        await robot.disconnect()

if __name__ == "__main__":
    asyncio.run(main())