<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com arduino:bits_and_bytes</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-06-24T11:14:24+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/bit?rev=1708041849&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/bitclear?rev=1708041849&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/bitread?rev=1708041849&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/bitset?rev=1708041849&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/bitwrite?rev=1708041849&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/highbyte?rev=1708041849&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/bits_and_bytes/lowbyte?rev=1708041850&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/bit?rev=1708041849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:09+02:00</dc:date>
        <title>bit()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/bit?rev=1708041849&amp;do=diff</link>
        <description>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()
* bitWrite()
* bitSet()
* bitClear()
Source: arduino.cc</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/bitclear?rev=1708041849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:09+02:00</dc:date>
        <title>bitClear()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/bitclear?rev=1708041849&amp;do=diff</link>
        <description>Description

Clears (writes a 0 to) a bit of a numeric variable.

Syntax

bitClear(x, n)

Parameters

x: the numeric variable whose bit to clear

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

Returns

none

See also

* bit()
* bitRead()
* bitWrite()
* bitSet()</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/bitread?rev=1708041849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:09+02:00</dc:date>
        <title>bitRead()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/bitread?rev=1708041849&amp;do=diff</link>
        <description>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()
* bitWrite()
* bitSet()
* bitClear()</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/bitset?rev=1708041849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:09+02:00</dc:date>
        <title>bitSet()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/bitset?rev=1708041849&amp;do=diff</link>
        <description>Description

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

Returns

none

See also

* bit()
* bitRead()
* bitWrite()
* bitClear()</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/bitwrite?rev=1708041849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:09+02:00</dc:date>
        <title>bitWrite()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/bitwrite?rev=1708041849&amp;do=diff</link>
        <description>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)</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/highbyte?rev=1708041849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:09+02:00</dc:date>
        <title>highByte()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/highbyte?rev=1708041849&amp;do=diff</link>
        <description>Description

Extracts the high-order (leftmost) byte of a word (or the second lowest byte of a larger data type).

Syntax

highByte(x)

Parameters

x: a value of any type

Returns

byte

See also

* lowByte()
*  word
Source: arduino.cc</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/bits_and_bytes/lowbyte?rev=1708041850&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:10+02:00</dc:date>
        <title>lowByte()</title>
        <link>https://code-reference.com/arduino/bits_and_bytes/lowbyte?rev=1708041850&amp;do=diff</link>
        <description>Description

Extracts the low-order (rightmost) byte of a variable (e.g. a word).

Syntax

lowByte(x)

Parameters

x: a value of any type

Returns

byte

See also

* highByte()
*  word
Source: arduino.cc</description>
    </item>
</rdf:RDF>
