mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #15246 from haukepetersen/add_example_i2cscanner
examples: add I2C scanner
This commit is contained in:
commit
7c1cb66fe2
@ -5,6 +5,11 @@
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
config MODULE_SHELL_COMMANDS
|
||||
menuconfig MODULE_SHELL_COMMANDS
|
||||
bool "Basic shell commands"
|
||||
depends on MODULE_SHELL
|
||||
|
||||
config MODULE_I2C_SCAN
|
||||
bool "I2c scanner"
|
||||
depends on MODULE_SHELL
|
||||
depends on MODULE_PERIPH_I2C
|
||||
|
@ -5,6 +5,8 @@ FEATURES_REQUIRED = periph_i2c
|
||||
FEATURES_OPTIONAL = periph_i2c_reconfigure
|
||||
|
||||
USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
USEMODULE += i2c_scan
|
||||
USEMODULE += xtimer
|
||||
|
||||
# avoid running Kconfig by default
|
||||
|
@ -5,4 +5,5 @@ BOARD_INSUFFICIENT_MEMORY := \
|
||||
arduino-uno \
|
||||
atmega328p \
|
||||
nucleo-l011k4 \
|
||||
samd10-xmini \
|
||||
#
|
||||
|
@ -1,5 +1,7 @@
|
||||
# this file enables modules defined in Kconfig. Do not use this file for
|
||||
# application configuration. This is only needed during migration.
|
||||
CONFIG_MODULE_I2C_SCAN=y
|
||||
CONFIG_MODULE_PERIPH_I2C=y
|
||||
CONFIG_MODULE_SHELL=y
|
||||
CONFIG_MODULE_SHELL_COMMANDS=y
|
||||
CONFIG_MODULE_XTIMER=y
|
||||
|
Loading…
Reference in New Issue
Block a user