I just stumbled onto the lib8tion.h file of the library. In a previous post, he (@Daniel_Garcia )mentioned something about random8() and I wanted to try and find where that was noted. I’m just a beginner, but it looks like this is a tool chest of functions for LED programming? Could someone please elaborate…?
Yep, you’re exactly right: lib8tion (“libation”) is a library of functions that can be useful when doing LED programming. Some of them are new, and some are high-speed versions of functionality that’s already available in the Arduino standard library. For example, random8() is many times faster than Arduino’s built-in “random()”, but is only good for returning random numbers between 0 and 255 (or less) – but that’s often exactly what’s needed. Similarly, sin16 and cos16 are about 40 times faster than Arduino sin() and cos(), but they operate a little differently.
Right this moment, the best existing public documentation is in the source files themselves – for which I apologize. Better docs are coming, but in the meantime I’d recommend reading the inline comments, playing around, and asking questions afterward if you can’t get it figured out. We’ll post a notice when the new doc is up, too.
Let me know if I can help with the documentation. I write training for a living and I would be happy to dedicate sometime to help out.
Thanks! May just take you up on that!