pimoroni / rgbmatrix5x5-python

Python library for the Pimoroni 5x5 RGB Matrix Breakout
https://shop.pimoroni.com/products/5x5-rgb-matrix-breakout
MIT License
12 stars 5 forks source link

Fixed set_multiple_pixels #4

Closed UnfinishedStuff closed 5 years ago

UnfinishedStuff commented 5 years ago

Changed "display.set_pixel" to "self.set_pixel", which was breaking the function.

set_multiple_pixels currently quits with:

display.set_pixel(x, y, from_r + (step_r * step), from_g + (step_g * step), from_b + (step_b * step))
NameError: global name 'display' is not defined

This modification fixes that.

Gadgetoid commented 5 years ago

Thank you. This is a face-palmingly stupid error on my part for not writing a test for this. A situation I will rectify shortly.

Gadgetoid commented 5 years ago

Thank you- merged, new test added to catch any future regressions, and version 0.0.3 released to PIP!

UnfinishedStuff commented 5 years ago

Cheers, it's a lovely wee breakout, especially now that set_all is fixed as well.