First spot- watch out for Python2/3 compatibility. It might not be on your radar, but so you know:
In Python 2:
1/100 = 0
And in Python 3:
1/100 = 0.01
This is because Python 2 treats the two numbers as integers and performs integer division with an integer result.
For back-compatibility you could use:
I'd also replace
import unicornhat as uh with
import unicornhat and rename all instances of
unicornhat. since it's not necessary to introduce ambiguity for the sake of saving a few keys.
Good stuff, though. There might be a way to import all of the
unicornhat methods into your module so you just import your add-on and can use it as a total replacement.
Perhaps this is one of those cases where
from unicornhat import * is okay :D