mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-08-24 10:48:37 +02:00
refactored code
This commit is contained in:
@@ -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){
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user