Boolean Array
A boolean
in Arduino holds only one of two values, true
or false
, yet it occupies
one byte of RAM. Since the Arduino Uno only has 2k of SRAM, memory is at a premium. This Arduino library defines a boolean array which compresses 8 booleans into the space of one byte.