With a few changes, it would be possible to use this code from Linux as well, namely by changing how the I/O is being done by overloading digitalWrite (GPIO Write) and ShiftOut (SPI Write).
With this, it would be possible to write a wrapper around this library when using Linux which would allow it to be built as a shared library. This opens the possibility of linking against the library (through the wrapper) which would allow using with proprietary code.
Description
With a few changes, it would be possible to use this code from Linux as well, namely by changing how the I/O is being done by overloading digitalWrite (GPIO Write) and ShiftOut (SPI Write).
With this, it would be possible to write a wrapper around this library when using Linux which would allow it to be built as a shared library. This opens the possibility of linking against the library (through the wrapper) which would allow using with proprietary code.
Let me know what you think