Unofficial library for sphero v2.
This is an unofficial Sphero library for BLE toys.
The Sphero protocol is reverse-engineered using the official Sphero Edu application for Android and this library.
This code is tested only on Sphero Bolt. Probably it will work on the other BLE toys too.
Install the dependencies
For using this library need bluepy and libgtk2.0-dev.
# apt-get install libgtk2.0-dev # pip install bluepy
# pip install pysphero
from time import sleep from pysphero.utils import toy_scanner def main(): with toy_scanner() as sphero: sphero.power.wake() sleep(2) sphero.power.enter_soft_sleep() if __name__ == '__main__': main()
Packet contains sourceID and targetID. Their meaning is unknown.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pysphero-0.0.7.tar.gz (14.6 kB)||File type Source||Python version None||Upload date||Hashes View|