i2c

xod/i2c/i2c

I²C interface object constructor. Returns hardware I²C #0.
i2c
@/i2c
I²C interface object constructor. Returns hardware I²C #0.
i2c
OUT
OUT@/i2c

C++ implementation

#include <Wire.h>

node {
    meta {
        using Type = TwoWire*;
    }

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