This block lacks lots of whitespace.
e.g.
for (uint8_t i = 0; i < 3; i++) {