pimoroni / unicorn-hat

Python library for Unicorn pHAT and HAT. 32 or 64 blinding ws2812 pixels for your Raspberry Pi
https://shop.pimoroni.com/products/unicorn-hat
MIT License
370 stars 131 forks source link

Modifications to add clearing on exit to unicornd #135

Closed KSABCarl closed 4 years ago

KSABCarl commented 4 years ago

I'm not sure how much unicornd is used – I use it so my students don't need to use sudo when communicating with the Unicorn PHAT...

This PR adds a CLEAR-command to unicornd and adds this to test_client/client.py. Also clearing of the led-panel and cleaning up has been added with atexit.register so the panel isn't left with the leds on.

Gadgetoid commented 4 years ago

I've no idea! But it's interesting to know that it's still used by you at least. Thank you for taking the time to raise a PR for this.