aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/bit.rst
blob: f8241a5b40f75aaa077659b1f08fa0ea4d18040e (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
.. _arduino-bit:

bit()
=====

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

Computes the value of the specified bit (bit 0 is 1, bit 1 is 2,
bit 2 is 4, etc.).



Syntax
------

bit(n)



Parameters
----------

n: the bit whose value to compute



Returns
-------

the value of the bit



See also
--------


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