[Solved] #include files

spandit:
after adding "#define byte uint8_t" to the top of the file (because I was getting a "byte does not name a type" error)

I suggest replacing that with...

#include <inttypes.h>