refactored code

This commit is contained in:
hhaupt
2024-06-13 00:55:30 +02:00
parent 3c0cbe1941
commit 448e7e3f4b
7 changed files with 16 additions and 31 deletions

View File

@@ -1,7 +1,6 @@
#include "ColorDetection.h"
void ColorDetection::begin(void){
Wire.begin(I2C_MASTER_SDA_IO,I2C_MASTER_SCL_IO);
ColorDetection::configure(VEML_CONFIG{.mode = AUTO,.enabled = true,.exposureTime=MS40});
};
void ColorDetection::configure(VEML_CONFIG config){

View File

@@ -1,3 +1,14 @@
/**
* @file ColorDetecion.h
* @author Hans Haupt
* @brief Class that controls the colorsensor (VEML6040) of the dezibot.
* @version 0.1
* @date 2024-06-01
*
* @copyright Copyright (c) 2024
*
*/
#ifndef ColorDetection_h
#define ColorDetection_h
#include <stdint.h>