Minimum viable code

Minimum viable code. Everything is laid out linearly (with pin values in #define for clarity) so beginners can easily parse out what's going on here.