b. You just copy the example code from https://www.espruino.com/TCS3472x into the right-hand side of the Web IDE and click 'upload'
This is all you need to have for code, no module download is required:
var tcs=require("TCS3472x").connect(I2C1, 1 /*integration cycles*/, 1 /*gain*/);
var v = tcs.getValue();
© Espruino, powered by microcosm.
Report a problem