Adafruit VEML7700 Lux Sensor Library
|
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Adafruit_I2CRegister.h>
#include <Wire.h>
Go to the source code of this file.
Classes | |
class | Adafruit_VEML7700 |
Class that stores state and functions for interacting with VEML7700 Light Sensor. More... | |
Macros | |
#define | VEML7700_I2CADDR_DEFAULT 0x10 |
I2C address. | |
#define | VEML7700_ALS_CONFIG 0x00 |
Light configuration register. | |
#define | VEML7700_ALS_THREHOLD_HIGH 0x01 |
Light high threshold for irq. | |
#define | VEML7700_ALS_THREHOLD_LOW 0x02 |
Light low threshold for irq. | |
#define | VEML7700_ALS_POWER_SAVE 0x03 |
Power save regiester. | |
#define | VEML7700_ALS_DATA 0x04 |
The light data output. | |
#define | VEML7700_WHITE_DATA 0x05 |
The white light data output. | |
#define | VEML7700_INTERRUPTSTATUS 0x06 |
What IRQ (if any) | |
#define | VEML7700_INTERRUPT_HIGH 0x4000 |
Interrupt status for high threshold. | |
#define | VEML7700_INTERRUPT_LOW 0x8000 |
Interrupt status for low threshold. | |
#define | VEML7700_GAIN_1 0x00 |
ALS gain 1x. | |
#define | VEML7700_GAIN_2 0x01 |
ALS gain 2x. | |
#define | VEML7700_GAIN_1_8 0x02 |
ALS gain 1/8x. | |
#define | VEML7700_GAIN_1_4 0x03 |
ALS gain 1/4x. | |
#define | VEML7700_IT_100MS 0x00 |
ALS intetgration time 100ms. | |
#define | VEML7700_IT_200MS 0x01 |
ALS intetgration time 200ms. | |
#define | VEML7700_IT_400MS 0x02 |
ALS intetgration time 400ms. | |
#define | VEML7700_IT_800MS 0x03 |
ALS intetgration time 800ms. | |
#define | VEML7700_IT_50MS 0x08 |
ALS intetgration time 50ms. | |
#define | VEML7700_IT_25MS 0x0C |
ALS intetgration time 25ms. | |
#define | VEML7700_PERS_1 0x00 |
ALS irq persistence 1 sample. | |
#define | VEML7700_PERS_2 0x01 |
ALS irq persistence 2 samples. | |
#define | VEML7700_PERS_4 0x02 |
ALS irq persistence 4 samples. | |
#define | VEML7700_PERS_8 0x03 |
ALS irq persistence 8 samples. | |
#define | VEML7700_POWERSAVE_MODE1 0x00 |
Power saving mode 1. | |
#define | VEML7700_POWERSAVE_MODE2 0x01 |
Power saving mode 2. | |
#define | VEML7700_POWERSAVE_MODE3 0x02 |
Power saving mode 3. | |
#define | VEML7700_POWERSAVE_MODE4 0x03 |
Power saving mode 4. | |
#define | VEML7700_FALLTHROUGH |
Used to explicitly annotate switch case fall throughs. Newer compilers will throw a warning otherwise. | |
Enumerations | |
enum | luxMethod { VEML_LUX_NORMAL, VEML_LUX_CORRECTED, VEML_LUX_AUTO, VEML_LUX_NORMAL_NOWAIT, VEML_LUX_CORRECTED_NOWAIT } |
I2C Driver for VEML7700 Lux sensor
This is a library for the Adafruit VEML7700 breakout: http://www.adafruit.com/
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
BSD license (see license.txt)
enum luxMethod |
Options for lux reading method