• 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);
    
About

Avatar for Gordon @Gordon started