MAX44009 I2C Ambient Light Sensor
MAX44009 is a low power I2C ambient light sensor. See the Datasheet for more information.
Use the MAX44009 (About Modules) module for it.
You can wire it up as follows:
Device Pin | Espruino |
---|---|
1 (VIN) | 3.3 |
2 (GND) | GND |
3 (SCL) | B8 |
4 (SDA) | B9 |
How to use the module:
I2C1.setup({scl:B8,sda:B9});
var sensor = require("MAX44009").connect(I2C1);
console.log(sensor.getLux());
This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.