Code now mostly there, there is a reasonable API and no longer hardcoded values.

Still needs to restructure things into an Arduino library and an example
sketch.

And need to figure out how to handle oniudra headers in a way that's easy to
use from an Arduino sketch - maybe just rewrite the few definitions I use
inside the file itself?