Arduino: A Quick-Start Guide, Second Edition — by Maik Schmidt (135 / 146)
In embedded computing, you often have to manipulate bits. You sometimes have to read single bits to get some sensor data. In other cases, you have to set bits to turn a device into a certain status or to make it perform some action.
For bit manipulation, you need only a few operations. The simplest is the not operation that inverts a bit. It…