SparkFun_VEML7700_Arduino_Library
Classes | Macros | Typedefs | Enumerations | Variables
SparkFun_VEML7700_Arduino_Library.h File Reference
#include <Arduino.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  VEML7700
 

Macros

#define VEML7700_I2C_ADDRESS   0x10
 

Typedefs

typedef uint16_t VEML7700_t
 

Enumerations

enum  VEML7700_error_t {
  VEML7700_ERROR_READ = -4 , VEML7700_ERROR_WRITE = -3 , VEML7700_ERROR_INVALID_ADDRESS = -2 , VEML7700_ERROR_UNDEFINED = -1 ,
  VEML7700_ERROR_SUCCESS = 1
}
 
enum  VEML7700_sensitivity_mode_t {
  VEML7700_SENSITIVITY_x1 , VEML7700_SENSITIVITY_x2 , VEML7700_SENSITIVITY_x1_8 , VEML7700_SENSITIVITY_x1_4 ,
  VEML7700_SENSITIVITY_INVALID
}
 
enum  VEML7700_integration_time_t {
  VEML7700_INTEGRATION_25ms , VEML7700_INTEGRATION_50ms , VEML7700_INTEGRATION_100ms , VEML7700_INTEGRATION_200ms ,
  VEML7700_INTEGRATION_400ms , VEML7700_INTEGRATION_800ms , VEML7700_INTEGRATION_INVALID
}
 
enum  VEML7700_persistence_protect_t {
  VEML7700_PERSISTENCE_1 , VEML7700_PERSISTENCE_2 , VEML7700_PERSISTENCE_4 , VEML7700_PERSISTENCE_8 ,
  VEML7700_PERSISTENCE_INVALID
}
 
enum  VEML7700_interrupt_enable_t { VEML7700_INT_DISABLE , VEML7700_INT_ENABLE , VEML7700_INT_INVALID }
 
enum  VEML7700_interrupt_status_t {
  VEML7700_INT_STATUS_NONE , VEML7700_INT_STATUS_HIGH , VEML7700_INT_STATUS_LOW , VEML7700_INT_STATUS_BOTH ,
  VEML7700_INT_STATUS_INVALID
}
 
enum  VEML7700_shutdown_t { VEML7700_POWER_ON , VEML7700_SHUT_DOWN , VEML7700_SHUTDOWN_INVALID }
 

Variables

const VEML7700_error_t VEML7700_SUCCESS = VEML7700_ERROR_SUCCESS
 

Detailed Description

SparkFun VEML7700 Ambient Light Sensor Arduino Library

This library facilitates communication with the VEML7700 over I2C.

Want to support open source hardware? Buy a board from SparkFun!
SparkX smôl Environmental Peripheral Board (SPX-18976): https://www.sparkfun.com/products/18976

This library was written by: Paul Clark SparkFun Electronics November 4th 2021

Please see LICENSE.md for the license information

Macro Definition Documentation

◆ VEML7700_I2C_ADDRESS

#define VEML7700_I2C_ADDRESS   0x10

VEML7700 I2C address

Enumeration Type Documentation

◆ VEML7700_error_t

VEML7700 error code returns

◆ VEML7700_integration_time_t

ALS integration time setting Note: these are defined here in simple sequential order. The actual register settings are defined in VEML7700_config_integration_time_t

◆ VEML7700_interrupt_enable_t

ALS interrupt enable setting

◆ VEML7700_interrupt_status_t

ALS interrupt status, logical OR of the crossing low and high thrteshold INT triggers

◆ VEML7700_persistence_protect_t

ALS persistence protect number setting

◆ VEML7700_sensitivity_mode_t

Sensitivity mode selection

◆ VEML7700_shutdown_t

ALS shut down setting