Clears (writes a 0 to) a bit of a numeric variable.
- x: the numeric variable whose bit to clear.
- n: which bit to clear, starting at 0 for the least-significant (rightmost) bit.
- x: the value of the numeric variable after the bit at position n is cleared.
Demonstrates the use of bitClear() by printing the value of a variable to the Serial Monitor before and after the use of bitClear().
The result in Serial Monitor: