This is a proof-of-concept for mechanically producing a XOD library from an Arduino library. I fed the Adafruit Neopixel library in, and got a XOD library out. Pretending there are no further bugs, I could do this for most Arduino libraries.
This is amazing. I was very sceptical regarding to automatic conversion of a C++ library to a XOD library (actually about conversion of C++ to anything), but you broke my arrogance.
And although there are still questions to consider (delays, data types friction, etc) it looks viable. Thank you for sharing!
@cesars, @bradzilla84
I need to write up a lot about this. I plan on doing some later today.
the output pin is in the “constructor”: “adafruitneopixel” patch. It’s “p”.
The library is, as you discovered, in the github for manual loading. That’s one of the things: naming. It’s a mechanical translation from Adafruit, so author name? And I want to indicate that it is a low-level-rough-translation.
Beware, this is just a proof of concept! So, not really intended for real use yet. But, if you are happy playing with it to help discover issues, that’s what we need.