summaryrefslogtreecommitdiff
path: root/include/driver/ccs811.h
blob: aab1e35b4c01b8cf4a15a017d5807490329f6fb8 (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
/*
 * Copyright 2020 Daniel Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#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