1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_bh1750
2020-11-25 12:43:05 +01:00
..
app.config.test tests/driver_*: add Kconfig configuration files 2020-11-25 12:43:05 +01:00
main.c drivers/bh1750fvi: change prototype of bh1750fvi_init 2019-01-07 21:37:02 +01:00
Makefile tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
README.md tests: added test app for the bh1750fvi driver 2016-02-09 16:01:32 +01:00

About

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

Usage

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.