#include #include #include void setupOutputs() { P2->DIR = 0b111; } void writeOutputs(std::uint8_t val) { P2->OUT = val % 8; }