2020-04-29 05:49:05 +02:00
|
|
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
2021-01-07 14:12:35 +01:00
|
|
|
# 2021 HAW Hamburg
|
2020-04-29 05:49:05 +02:00
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
2021-01-07 14:12:35 +01:00
|
|
|
|
|
|
|
config MODULE_TCS37727
|
|
|
|
bool "TCS37727 RGB Light Sensor"
|
|
|
|
depends on HAS_PERIPH_I2C
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_I2C
|
|
|
|
|
2021-11-19 09:37:28 +01:00
|
|
|
config HAVE_TCS37727
|
|
|
|
bool
|
|
|
|
select MODULE_TCS37727 if MODULE_SAUL_DEFAULT
|
|
|
|
help
|
|
|
|
Indicates that a tcs37727 rgb light sensor is present.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_TCS37727
|
2020-04-29 05:49:05 +02:00
|
|
|
bool "Configure TCS37727 driver"
|
2020-08-31 09:33:35 +02:00
|
|
|
depends on USEMODULE_TCS37727
|
2020-04-29 05:49:05 +02:00
|
|
|
help
|
|
|
|
Configure the TCS37727 driver using Kconfig.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
if KCONFIG_USEMODULE_TCS37727
|
2020-04-29 05:49:05 +02:00
|
|
|
|
|
|
|
config TCS37727_ATIME_DEFAULT
|
|
|
|
int "RGBC integration time in microseconds"
|
|
|
|
range 2400 614000
|
|
|
|
default 200000
|
|
|
|
help
|
|
|
|
RGBC integration time impacts both the resolution and the sensitivity
|
|
|
|
of the RGBC reading. Refer to the section "RGBC Time Register" in the
|
|
|
|
datasheet for more information.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
endif # KCONFIG_USEMODULE_TCS37727
|