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.
Another thing to do might be to use a software I2C instance just in case...
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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.Another thing to do might be to use a software I2C instance just in case...