OPT3001 Light Sensor

The OPT3001 is a sensor that measures the intensity of visible light. The spectral response of the sensor tightly matches the photopic response of the human eye and includes significant infrared rejection.

You can use the OPT3001 (About Modules) module with the OPT3001 as follows:


var i2c = new I2C();
i2c.setup({sda:..., scl:...});

var o = require("OPT3001").connectI2C(i2c);

setTimeout(function() {
}, 1000);

Note: you can supply addr to connectI2C's second argument to set an I2C address if it is non-standard.


// Turn the sensor on, taking continuous readings
OPT3001.prototype.on = function () { ... }

// Turn the sensor off
OPT3001.prototype.off = function () { ... }

// Returns the last reading in Lux
OPT3001.prototype.read = function () { ... }

function (options, r, w) { ... }

exports.connectI2C = function (i2c, options) { ... }

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.