Actually, I don't know. I made it compile and then I had to make changes for the Teensy and the linker. Almost everything I did was cosmetic - casts and such. One of the errors I had vanished while I was still working it.
So. I don't know the code yet. Haven't really looked at it except where the compiler was unhappy. It needs some attention: good names for the functions would be a start but then there's variables called kk. Madness.
That said, the thing is driven by serial right now. If your front end provides the same interface, it could work. I'm just uncomfortable because it feels like we're about to embark on some big bang testing.