21 unsigned char i, mask = 1;
22 for (i = 0; i < 8; ++i) {
23 table[i] = ((
byte & mask) == mask);
30 unsigned char i,
byte = 0, mask = 1;
31 for (i = 0; i < 8; ++i) {
32 if (
table[i])
byte |= mask;
bool table[8]
Table of 8 booleans (one per bit)
void reset()
Sets all bits to 0.
void fromByte(unsigned char byte)
Converts a byte to this structure.
unsigned char toByte() const
Converts this structure to a byte.