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

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

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

		float getLux();
};

extern MAX44009 max44009;

#endif