read-1

wayland/read-bits/read-1

Read bit 1.
read-1
@/read-1
Read bit 1.
INbyte
Input byte.
read-1
IN
Bit
Bitboolean
Bit value as boolean.
To use the node in your project you should have the wayland/read-bits library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD dirtieness disable

node {

    void evaluate(Context ctx) {

        uint8_t byte = getValue<input_IN>(ctx);
        emitValue<output_Bit>(ctx, bitRead(byte, 1));
    }
}