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.
|
# directory for more details.
|
||||||
#
|
#
|
||||||
|
|
||||||
config MODULE_SHELL_COMMANDS
|
menuconfig MODULE_SHELL_COMMANDS
|
||||||
bool "Basic shell commands"
|
bool "Basic shell commands"
|
||||||
depends on MODULE_SHELL
|
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
|
FEATURES_OPTIONAL = periph_i2c_reconfigure
|
||||||
|
|
||||||
USEMODULE += shell
|
USEMODULE += shell
|
||||||
|
USEMODULE += shell_commands
|
||||||
|
USEMODULE += i2c_scan
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
|
|
||||||
# avoid running Kconfig by default
|
# avoid running Kconfig by default
|
||||||
|
|||||||
@ -5,4 +5,5 @@ BOARD_INSUFFICIENT_MEMORY := \
|
|||||||
arduino-uno \
|
arduino-uno \
|
||||||
atmega328p \
|
atmega328p \
|
||||||
nucleo-l011k4 \
|
nucleo-l011k4 \
|
||||||
|
samd10-xmini \
|
||||||
#
|
#
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
# this file enables modules defined in Kconfig. Do not use this file for
|
# this file enables modules defined in Kconfig. Do not use this file for
|
||||||
# application configuration. This is only needed during migration.
|
# application configuration. This is only needed during migration.
|
||||||
|
CONFIG_MODULE_I2C_SCAN=y
|
||||||
CONFIG_MODULE_PERIPH_I2C=y
|
CONFIG_MODULE_PERIPH_I2C=y
|
||||||
CONFIG_MODULE_SHELL=y
|
CONFIG_MODULE_SHELL=y
|
||||||
|
CONFIG_MODULE_SHELL_COMMANDS=y
|
||||||
CONFIG_MODULE_XTIMER=y
|
CONFIG_MODULE_XTIMER=y
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user