Skip to main content

PyUSB-based Blink(1) control library

Project description

About this library

This is a rewrite of ThingM’s original Python library. It includes the following modifications:

  • 100% test coverage on all library components
  • Python 3.x compatible
  • Automatic installation via Python Package Index.
  • Higher level control over the blink(1).
  • Single implementation with pyusb, intended to be installed with admin access or virtualenv.


Use the pip utility to fetch the latest release of this package and any additional components required in a single step:

pip install blink1

Developer installation

Having checked out the blink(1) library, cd to python/pypi and run the setup script:

python develop


The simplest way to use this library is via a context manager.

import time from blink1.blink1 import blink1

with blink1() as b1:
b1.fade_to_color(100, ‘navy’) time.sleep(10)

When the blink1() block exits the light is automatically switched off. It is also possible to access the exact same set of functions without the context manager:

from blink1.blink1 import Blink1

import time

b1 = Blink1() b1.fade_to_rgb(1000, 64, 64, 64) time.sleep(3) b1.fade_to_rgb(1000, 255, 255, 255)

Unlike the context manager, this demo will leave the blink(1) at the end of execution.

Project details

Release history Release notifications

History Node


History Node


History Node


History Node

History Node


History Node


History Node


History Node


This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
blink1-0.0.9-py3-none-any.whl (7.7 kB) Copy SHA256 hash SHA256 Wheel 3.4 Jun 23, 2014
blink1-0.0.9.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Jun 23, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page