I2C Write

Use this custom Arduino node to send an activation from an I2C slave to an I2C master.

Includes

#include "Wire.h"

Setup Code

Wire.begin(); // join i2c bus (address optional for master)

InputChange

Wire.beginTransmission(4);
byte byteValue = transform(Input_Activation, 0.0, 1.0, 0, 255);
Wire.write(byteValue);
Wire.endTransmission();

No required source files.

To use this node in your Embrio project, either add it from the Library toolbar or copy the XML in the below box and paste it into a node screen.

View Comments (0)