Better HSB to RGB coversion
Couple of people pointed loss of precision on HSB to RGB conversion. Originally I adopted code from cyzrgb without thinking much, and found some significant loss of precision.
I improve the code for higher precision conversion with slightly faster, smaller code. Single conversion takes about 25uS. The main algorithm is from https://github.com/adafruit/RGB-matrix-Panel/blob/master/examples/plasma/plasma.pde
You can simply install new version of HP RGB LED Library to take the advantage of improved conversion code. All existing codes compatible with new library.
HPRGB_Shield_V2_Library-v1.1.zip

It’s much better than before. However, when I tried it for my color-fading program, I could still notice jerky color changes that I don’t with my own floating-point calculations. If you don’t need smooth color transitions, this one should fine.