pimoroni / blinkt

Python Library for Blinkt; 8 APA102 LEDs for your Raspberry Pi
https://shop.pimoroni.com/products/blinkt
MIT License
314 stars 103 forks source link

Fixed off by one error #61

Closed deisterhold closed 6 years ago

deisterhold commented 6 years ago

Fixed error inside set_pixel when led = 8 that would cause a write outside the bounds of the leds array. Added bounds checking to set_pixel_brightness function for consistency.

Gadgetoid commented 6 years ago

Thank you! I've not been maintaining the c code at all, did you get any use out of it? It could probably use updating to include the fixes that went into Python for different pixel types.

deisterhold commented 6 years ago

I've been working on integrating it as a static library into a golang project I'm working on.