diff options
Diffstat (limited to 'source/arduino/bitwrite.rst')
-rw-r--r-- | source/arduino/bitwrite.rst | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/source/arduino/bitwrite.rst b/source/arduino/bitwrite.rst new file mode 100644 index 0000000..5d95506 --- /dev/null +++ b/source/arduino/bitwrite.rst @@ -0,0 +1,52 @@ +.. _arduino-bitwrite: + +bitWrite() +========== + +Description +----------- + +Writes a bit of a numeric variable. + + + +Syntax +------ + +bitWrite(x, n, b) + + + +Parameters +---------- + +x: the numeric variable to which to write + + + +n: which bit of the number to write, starting at 0 for the +least-significant (rightmost) bit + + + +b: the value to write to the bit (0 or 1) + + + +Returns +------- + +none + + + +See also +-------- + + +- `bit <http://arduino.cc/en/Reference/Bit>`_\ () +- `bitRead <http://arduino.cc/en/Reference/BitRead>`_\ () +- `bitSet <http://arduino.cc/en/Reference/BitSet>`_\ () +- `bitClear <http://arduino.cc/en/Reference/BitClear>`_\ () + + |