bibliopixel.layout.geometry.matrix module

class bibliopixel.layout.geometry.matrix.Matrix(strip, columns=None, rows=None, reflect_x=False, reflect_y=False, serpentine_x=False, serpentine_y=False, transpose=False)[source]

Bases: object

Map a matrix onto a strip of lights.

get(x, y)[source]
set(x, y, value)[source]
bibliopixel.layout.geometry.matrix.make_matrix_coord_map(dx, dy, serpentine=True, offset=0, rotation=0, y_flip=False)[source]

Helper method to generate X,Y coordinate maps for strips

bibliopixel.layout.geometry.matrix.make_matrix_coord_map_multi(config, rotation=0, y_flip=False)[source]
bibliopixel.layout.geometry.matrix.make_matrix_coord_map_positions(coord_map)[source]