The Wiring 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: hbarragan [at] uniandes.edu.co
Name
~ (bitwise one´s complement)
Examples
unsigned int value=4; // 4 = 0000 0100
value = ~ value; // 251 = 1111 1011
Description
This operand is unary (requires one operand) and inverts bit by bit of an expression. Returns 0 for that position bit if the position is 1 or 1 if the position is 0. The following list shows all possible combinations: