Reference for Wiring 1.0 (ALPHA) 0021+. If you have a previous version, use the reference included with your software.
If you see any errors or have any comments, let us know.
Name
bitRead
Examples
byte x = 33; // sets x to 33 (00100001 in binary)
byte a = bitRead(x, 5); // Sets a = 1, since bitRead returns the value of the 5th bit of variable x
Description
The bitRead command returns the bit value of the bit index requested