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

bitWrite(x, n, b)
=================

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

(Macro) Writes a bit of a numeric variable.

Parameters
----------

**x**: the numeric variable whose bit 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
-------

Nothing.

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

Maple's version of ``bitWrite()`` is compatible with Arduino.

See also
--------

-  :ref:`bit() <arduino-bit>`
-  :ref:`bitRead() <arduino-bitRead>`
-  :ref:`bitSet() <arduino-bitSet>`
-  :ref:`bitClear() <arduino-bitClear>`