-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSensorRGB.h
More file actions
35 lines (33 loc) · 773 Bytes
/
Copy pathSensorRGB.h
File metadata and controls
35 lines (33 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* DESCRIPCIÓN
* Define la clase SensorRGG
*
* MODIFICACIONES
* J.Villalobos 16.Jun.2017 Creación
*/
#include <Arduino.h>
#include <Adafruit_TCS34725.h>
#ifndef SENSORRGB_H
#define SENSORRGB_H
class SensorRGB {
public:
// ---- Constructores
SensorRGB();
// ---- Métodos
bool inicio();
void getRGBColor();
uint16_t Red();
uint16_t Green();
uint16_t Blue();
uint16_t Clear();
float Diff(uint16_t r, uint16_t g, uint16_t b);
private:
uint16_t _r,
_g,
_b,
_c;
float _red,
_green,
_blue;
Adafruit_TCS34725 _tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
};
#endif