i2c-wire2

wayland/i2c-additional-buses/i2c-wire2

I²C interface object constructor. Returns hardware I²C #2.
i2c-wire2
@/i2c-wire2
I²C interface object constructor. Returns hardware I²C #2.
i2c-wire2
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) {
        Wire2.begin();
        emitValue<output_OUT>(ctx, &Wire2);
    }
}