Adafruit VEML6075 UV Sensor Library
Classes | Macros | Typedefs | Enumerations
Adafruit_VEML6075.h File Reference
#include "Arduino.h"
#include <Adafruit_I2CDevice.h>
#include <Adafruit_I2CRegister.h>
#include <Wire.h>

Go to the source code of this file.

Classes

union  veml6075_commandRegister
 CMSIS style register bitfield for commands. More...
 
class  Adafruit_VEML6075
 Class that stores state and functions for interacting with VEML6075 sensor IC. More...
 

Macros

#define VEML6075_ADDR   (0x10)
 I2C address (cannot be changed)
 
#define VEML6075_REG_CONF   (0x00)
 Configuration register.
 
#define VEML6075_REG_UVA   (0x07)
 UVA band raw measurement.
 
#define VEML6075_REG_DARK   (0x08)
 Dark current (?) measurement.
 
#define VEML6075_REG_UVB   (0x09)
 UVB band raw measurement.
 
#define VEML6075_REG_UVCOMP1   (0x0A)
 UV1 compensation value.
 
#define VEML6075_REG_UVCOMP2   (0x0B)
 UV2 compensation value.
 
#define VEML6075_REG_ID   (0x0C)
 Manufacture ID.
 
#define VEML6075_DEFAULT_UVA_A_COEFF   2.22
 Default for no coverglass.
 
#define VEML6075_DEFAULT_UVA_B_COEFF   1.33
 Default for no coverglass.
 
#define VEML6075_DEFAULT_UVB_C_COEFF   2.95
 Default for no coverglass.
 
#define VEML6075_DEFAULT_UVB_D_COEFF   1.74
 Default for no coverglass.
 
#define VEML6075_DEFAULT_UVA_RESPONSE   0.001461
 Default for no coverglass.
 
#define VEML6075_DEFAULT_UVB_RESPONSE   0.002591
 Default for no coverglass.
 

Typedefs

typedef enum veml6075_integrationtime veml6075_integrationtime_t
 integration time definitions
 

Enumerations

enum  veml6075_integrationtime {
  VEML6075_50MS, VEML6075_100MS, VEML6075_200MS, VEML6075_400MS,
  VEML6075_800MS
}
 integration time definitions
 

Detailed Description

Designed specifically to work with the VEML6075 sensor from Adafruit -—> https://www.adafruit.com/products/3964

These sensors use I2C to communicate, 2 pins (SCL+SDA) are required to interface with the breakout.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.

MIT license, all text here must be included in any redistribution.