summaryrefslogtreecommitdiff
path: root/include/driver/ccs811.h
blob: 27d7e41a44af262b7a6c4f776291f6a065758b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CCS811_H
#define CCS811_H

class CCS811 {
	private:
		CCS811(const CCS811 &copy);
		unsigned char const address;
		unsigned char txbuf[3];
		unsigned char rxbuf[2];

	public:
		CCS811(unsigned char const addr) : address(addr) {}

		void init();
		short check();
};

extern CCS811 ccs811;

#endif