1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/isl29020/Kconfig
2022-03-04 14:15:43 +01:00

39 lines
1.1 KiB
Plaintext

# Copyright (c) 2020 Freie Universitaet Berlin
# 2020 HAW Hamburg
#
# 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.
#
config MODULE_ISL29020
bool "ISL29020 light sensor"
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
config HAVE_ISL29020
bool
select MODULE_ISL29020 if MODULE_SAUL_DEFAULT
help
Indicates that a isl29020 sensor is present.
menuconfig KCONFIG_USEMODULE_ISL29020
bool "Configure ISL29020 driver"
depends on USEMODULE_ISL29020
help
Configure the ISL29020 driver using Kconfig.
if KCONFIG_USEMODULE_ISL29020
config ISL29020_DEFAULT_ADDRESS
hex "Default I2C address"
range 0x44 0x45
default 0x44
help
The address depends on the status of A0 Pin. Default address
corresponds to A0 connected to GND. For more information refer to the
section 'I2C Interface' in the datasheet.
endif # KCONFIG_USEMODULE_ISL29020