-->
Page 1 of 1

BH1750 i2c Light Sensor Driver

PostPosted: Sun Dec 28, 2014 1:58 am
by hansaya
I just finished my first version of BH1750 driver. Took me while to get it working and had to get a Analog dicovery to debug.

If anyone wondering how to use I2c, this driver might help get started. Big thanks to the person who wrote the newest I2c driver.

Here is the link to my driver and i hope this helps someone out.

https://github.com/hansaya/BH1750-Driver-ESP8266

Let me know if you guys have any questions. Just keep in mind, this driver is not perfect and I'm fairly new to I2c. :shock:


-Hans-

Re: BH1750 i2c Light Sensor Driver

PostPosted: Tue Dec 30, 2014 6:03 am
by zz9pa
I dont see the i2c.c and i2c.h files in there ?

Did you use the ones from here :
https://github.com/zarya/esp8266_i2c_driver

Did you need to modify them in any way ?

Re: BH1750 i2c Light Sensor Driver

PostPosted: Thu Jan 01, 2015 11:33 am
by hansaya
No you don't need to modify in anyways except you could change the pins, as you need on i2c.h file.

They are located in driver folder and make sure in your make file include the file path folder for i2c driver. Look at sample firmware folder for an example.