pyupm_lol module

class pyupm_lol.LoL[source]

Bases: object

API for the Olimex LoL array.

ID: lol

Name: Lots of LEDs ( LoL) Array Rev A

Category: display

Manufacturer: adafruit

Connection: gpio This module defines the LoL API and implementation for a simple framebuffer.

C++ includes: lol.hpp

getFramebuffer()[source]

unsigned char * getFramebuffer()

Gets a framebuffer pointer 0 if successful

getPixel(x, y)[source]

bool getPixel(int x, int y)

Gets a pixel at specified coordinates

x: Coordinate x

y: Coordinate y

true if the pixel is on, false if off

std::invalid_argument: if pixel is out of bounds

setPixel(x, y, pixel)[source]

void setPixel(int x, int y, bool pixel)

Sets a pixel at specified coordinates

x: Coordinate x

y: Coordinate y

pixel: false is off, true is on

std::invalid_argument: if pixel is out of bounds