pimoroni / flotilla-python

Python library for the Pimoroni Flotilla plug-and-play electronics ecosystem
MIT License
25 stars 15 forks source link

Flotilla Python API

This library interfaces with Flotilla over USB serial.

Installing

We've created an installation script that will install the Flotilla python API and update your Dock in the process. To run it fire up Terminal which you'll find in Menu -> Accessories -> Terminal on your Raspberry Pi desktop like so:

Finding the terminal

In the new terminal window type the following and follow the instructions:

curl -sS https://get.pimoroni.com/flotilla | bash

IMPORTANT

If you've installed Rockpool, you need to shut down the Flotilla Daemon before you start talking to the dock using the present python API:

sudo service flotillad stop

Generic python installing

Download or clone this repository and follow the instructions:

cd flotilla-python
pip install ./library

Now you'll be able to use Flotilla with python. Make sure your dock connected.

>>> import flotilla
>>> dock = flotilla.Client()
>>> dock.ready
True