pimoroni / mote

Mote - drivers for the plug and play USB APA102 controller
https://shop.pimoroni.com/products/mote
MIT License
24 stars 14 forks source link

Handle brightness channel for #29 #30

Closed Gadgetoid closed 4 years ago

Gadgetoid commented 4 years ago

This change takes into account that mote.get_pixel now returns four values- red, green, blue and brightness- and ensures the right values are passed into rgb_to_hsv when calculating LED brightness.