I can't remember for sure, but is I2C1.writeTo(0x56, [0, 100, 0, 2]); any better? Also, did you set I2C1 up first? And did you try setting the bitrate to something low? If there's a Mega328 handling it, it may not be happy with high speed I2C.
I2C1.writeTo(0x56, [0, 100, 0, 2]);
Another thing to do might be to use a software I2C instance just in case...
© Espruino, powered by microcosm.
Report a problem