|
Dezibot 4
|
#include <stdint.h>#include <Wire.h>#include <Arduino.h>
Include dependency graph for ColorDetection.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | VEML_CONFIG |
| class | ColorDetection |
Macros | |
| #define | I2C_MASTER_SCL_IO 2 |
| #define | I2C_MASTER_SDA_IO 1 |
| #define | VEML_ADDR 0x10 |
| #define | CMD_CONFIG 0x00 |
| #define | REG_RED 0x08 |
| #define | REG_GREEN 0x09 |
| #define | REG_BLUE 0x0A |
| #define | REG_WHITE 0x0B |
Enumerations | |
| enum | duration { MS40 , MS80 , MS160 , MS320 , MS640 , MS1280 } |
| enum | vemlMode { AUTO , MANUAL } |
| enum | color { VEML_RED , VEML_GREEN , VEML_BLUE , VEML_WHITE } |
| #define CMD_CONFIG 0x00 |
Definition at line 25 of file ColorDetection.h.
| #define I2C_MASTER_SCL_IO 2 |
GPIO number used for I2C master clock
Definition at line 18 of file ColorDetection.h.
| #define I2C_MASTER_SDA_IO 1 |
GPIO number used for I2C master data
Definition at line 19 of file ColorDetection.h.
| #define REG_BLUE 0x0A |
Definition at line 28 of file ColorDetection.h.
| #define REG_GREEN 0x09 |
Definition at line 27 of file ColorDetection.h.
| #define REG_RED 0x08 |
Definition at line 26 of file ColorDetection.h.
| #define REG_WHITE 0x0B |
Definition at line 29 of file ColorDetection.h.
| #define VEML_ADDR 0x10 |
Slave address of the MPU9250 sensor
Definition at line 22 of file ColorDetection.h.
| enum color |
| Enumerator | |
|---|---|
| VEML_RED | |
| VEML_GREEN | |
| VEML_BLUE | |
| VEML_WHITE | |
Definition at line 53 of file ColorDetection.h.
| enum duration |
| Enumerator | |
|---|---|
| MS40 | |
| MS80 | |
| MS160 | |
| MS320 | |
| MS640 | |
| MS1280 | |
Definition at line 32 of file ColorDetection.h.
| enum vemlMode |
| Enumerator | |
|---|---|
| AUTO | |
| MANUAL | |
Definition at line 41 of file ColorDetection.h.