Skip to content

Using Python

Skyler Jane Clark edited this page Apr 20, 2018 · 4 revisions

This Wiki page details how to use Python to control a Flipper board.

Install the Python Bindings

To use Flipper from Python you will need to install the Python bindings. We are working on getting an entry in the python package index which will let users install the bindings using pip. But until then it's easy to install the bindings manually.

Navigate to the root of the repository and run the install command.

make install-python

Writing a simple program

Make the LED turn blue

from flipper import *
attach()
led.rgb(0, 0, 10)

Turning on an IO pin.

from flipper import *
gpio.enable(gpio.IO_4, 0);
gpio.write(gpio.IO_4, 0);
Clone this wiki locally