1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/bh1900nux
2024-03-26 14:53:35 +01:00
..
main.c tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00

About

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

$ CFLAGS="-DBH1900NUX_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 holding your finger on the sensor to heat it up, or blow on it to cool it down.