BlinktBoard

Represents the hardware of the pimoroni Blinkt!

This is the entry class for all activities using blinkter.

Users can obtain an instance of the class simply by running the code:

import blinkter

board = blinkter.BlinktBoard()
class blinkter.BlinktBoard

Represents the pimoroni Blinkt! GPIO board. This class is a singleton because in order to ensure threadsafety, it has to make sure that there are no other instances of it present in the current execution environment.

An instance of this class can be obtained in the following manner: .. code-block:: python3

from blinkter import BlinktBoard board = BlinktBoard()
black_all()

Turns all the pixels on the blinkt board off.

get_pixel(idx)

Returns a single Pixel on the blinkt board.

Parameters:idx – int The index of the pixel to get.