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

bitSet()
========

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

(Macro) Sets (writes a 1 to) a bit of a numeric variable.


Syntax
------

``bitSet(x, n)``


Parameters
----------

* **x** the numeric variable whose bit to set

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


Value
-----

None.


Arduino Compatibility
---------------------

The Maple implementation of bitSet is compatible with Arduino.


See Also
--------

-  :ref:`arduino-bit`
-  :ref:`arduino-bitread`
-  :ref:`arduino-bitwrite`
-  :ref:`arduino-bitclear`



.. include:: cc-attribution.txt