1
0
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:
Alexandre Abadie 2021-02-19 15:02:47 +01:00 committed by GitHub
commit 7c1cb66fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -5,4 +5,5 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
nucleo-l011k4 \
samd10-xmini \
#

View File

@ -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