You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Oleg Hahm 4f4214235b timex: unambiguous time conversion macros 6 years ago
Makefile tests: driver_bh1750: fix application name 7 years ago tests: added test app for the bh1750fvi driver 7 years ago
main.c timex: unambiguous time conversion macros 6 years ago


This test application is created for testing/demonstrating the BH1750FVI driver. It uses the default device parameters as specified in drivers/bh1750fvi/include/bh1750fvi_params.h. To override these setting, you can simply do this by defining these parameters as compiler flags while uilding, e.g.:

$ CFLAGS="-DBH1750FVI_PARAM_I2C=I2C_DEV(1)"" make all


Simply flash this example to your board and it will read the sensor value 5 times per second and print the sampled value to STDIO. You can verify the values by simply covering the sensor or holding it in front of a bright light and see the change in the sensor readings accordingly.