Restructured the fork as an Arduino sketch.