/* * Copyright 2020 Daniel Friesel * * SPDX-License-Identifier: BSD-2-Clause * * Driver for MAX44009 Ambient Light Sensor. * Does not support interrupts. */ #ifndef MAX44009_H #define MAX44009_H class MAX44009 { private: MAX44009(const MAX44009 ©); 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