bitRead() — Maple v0.0.9 Documentation

### Navigation

- next
- previous |
- LeafLabs |
- Docs Home |
- Index »
- Complete Language Index »

# bitRead()

(Macro) Gets the value of a bit in a number.

## Syntax

`bitRead(x, n)`

## Parameters

- x the number from which to read the bit.
- n which bit to read, starting at 0 for the least-significant (rightmost) bit

## Value

The value of the bit (0 or 1).

## Arduino Compatibility

The Maple implementation of `bitRead` is compatible with Arduino.

## See also

- bit()
- bitWrite()
- bitSet()
- bitClear()

License and Attribution

This documentation page was adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.

### Navigation

- next
- previous |
- LeafLabs |
- Docs Home |
- Index »
- Complete Language Index »