aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/bitread.rst
blob: 3d0b1a47584d8eb77f754e031dfd99248ecb2dc5 (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
.. _arduino-bitread:

bitRead()
=========

Description
-----------

Reads a bit of a number.



Syntax
------

bitRead(x, n)



Parameters
----------

x: the number from which to read



n: which bit to read, starting at 0 for the least-significant
(rightmost) bit



Returns
-------

the value of the bit (0 or 1).



See also
--------


-  `bit <http://arduino.cc/en/Reference/Bit>`_\ ()
-  `bitWrite <http://arduino.cc/en/Reference/BitWrite>`_\ ()
-  `bitSet <http://arduino.cc/en/Reference/BitSet>`_\ ()
-  `bitClear <http://arduino.cc/en/Reference/BitClear>`_\ ()