aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/bitwrite.rst
blob: 5d9550696909ee424142fff5acac4a7f43addc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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>`_\ ()