Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.4 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.4 KB

overdrive-python

Object interface for controlling Anki Overdrive with Python.

This project provide an API to control Anki Overdrive from Python. Commands are mostly reverse engineered from Anki Drive SDK and node-mqtt-for-anki-overdrive.

This code is depended on bluepy, so it's only work on Linux system.

Requirements

Usages

To use this interface, start with initiate Overdrive object with desired Bluetooth MAC address:

from overdrive import Overdrive

car = Overdrive("YOUR OVERDRIVE MAC ADDRESS")

For example, if your Overdrive Bluetooth MAC address is 00:11:22:33:44:55, use the following code:

from overdrive import Overdrive

car = Overdrive("00:11:22:33:44:55")

After initialization, you can perform desired action on created object. For example, if you want to set a speed for your Overdrive, call changeSpeed function on car object. The following code is an example with speed of 500 and acceleration of 1000:

car.changeSpeed(500, 1000)

Documentation

See overdrive.py file.

License

This project is licensed under MIT license. See LICENSE file for details.