Digital 16bit Serial Output Type Ambient Light Sensor IC by ROHM, Ambient light sensor (Illuminance to digital converter)
Diff: BH1750.h
- Revision:
- 1:4a02a8fbf021
- Parent:
- 0:d95f6ac4c8d6
diff -r d95f6ac4c8d6 -r 4a02a8fbf021 BH1750.h --- a/BH1750.h Sat Mar 07 23:44:42 2015 +0000 +++ b/BH1750.h Wed Aug 23 09:21:39 2017 +0000 @@ -3,17 +3,11 @@ * light intensity sensor module with built-in a 16 bit AD converter generating digital signal. * BH1750 by ROHM Co.,Ltd. * - * Copyright (c) 2015 Kenji Arai / JH1PJL + * Copyright (c) 2015,'17 Kenji Arai / JH1PJL * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ - * Created: March 7th, 2015 - * Revised: March 8th, 2015 - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, - * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE - * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, - * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * Created: March 7th, 2015 + * Revised: August 23rd, 2017 */ /* *---------------- REFERENCE ---------------------------------------------------------------------- @@ -115,7 +109,8 @@ void power_down(void); protected: - I2C _i2c; + I2C *_i2c_p; + I2C &_i2c; void init(void); @@ -126,3 +121,4 @@ }; #endif // BH1750_H +