i2c-wire1

wayland/i2c-additional-buses/i2c-wire1

I²C interface object constructor. Returns hardware I²C #1.
i2c-wire1
@/i2c-wire1
I²C interface object constructor. Returns hardware I²C #1.
i2c-wire1
OUT
OUTxod/i2c/i2c
To use the node in your project you should have the wayland/i2c-additional-buses 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

#include <Wire.h>

node {
    meta {
        using Type = TwoWire*;
    }

    void evaluate(Context ctx) {
        Wire1.begin();
        emitValue<output_OUT>(ctx, &Wire1);
    }
}