Did you know that most AVR chips have a type of hardware exclusive OR (XOR) option when it comes to the logic levels of the output pins? If you look in the datasheet (the image above is a ...
[Phillip] defines truth tables for XOR and AND. He’s able to then create strings that reference these truth tables. For example: the first line of [Phillip’s] AND table is #define AND_00 0.