blob: 0e9e8c853226eca7bcf7e8a66433a5c7b2ee4adb (
plain)
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
|
/*
* Copyright 2020 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef TSL2591_H
#define TSL2591_H
class TSL2591 {
private:
TSL2591(const TSL2591 ©);
unsigned char const address = 0x29;
unsigned char txbuf[2];
unsigned char rxbuf[4];
public:
TSL2591() {}
unsigned short ch0;
unsigned short ch1;
void init();
unsigned char getStatus();
void read();
};
extern TSL2591 tsl2591;
#endif
|