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:
I2C1.setup({scl:B6, sda:B7}); var tcs=require("TCS3472x").connect(I2C1, 1 /*integration cycles*/, 1 /*gain*/); var v = tcs.getValue(); print(v);
@Gordon started
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.
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: