hex digit
0
Each bit has a weight (8, 4, 2, 1). Add the weights of the bits that are on. The total (0–15) becomes one hex digit.
Toggle the eight bits below. Watch the nibbles split into hex digits in real time, then copy the result straight into your code as a C-style literal.