it builds

Finished converting the adafruit code, the only testing is that it
builds