From c0ff2e04d6d18ca457f200dcea84728084e88bb5 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 16:05:35 +0100 Subject: [PATCH] drivers/ws281x: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/ws281x/Kconfig | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 drivers/ws281x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index fd81e84513..87c5e9ae66 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -18,6 +18,7 @@ rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" rsource "my9221/Kconfig" rsource "rgbled/Kconfig" +rsource "ws281x/Kconfig" endmenu # Actuator Device Drivers menu "Display Device Drivers" diff --git a/drivers/ws281x/Kconfig b/drivers/ws281x/Kconfig new file mode 100644 index 0000000000..c30dc7d467 --- /dev/null +++ b/drivers/ws281x/Kconfig @@ -0,0 +1,27 @@ +# Copyright (c) 2021 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_WS281X + bool "WS2812/SK6812 RGB LED (NeoPixel)" + depends on HAS_ARCH_AVR8 || HAS_ARCH_ESP32 || HAS_ARCH_NATIVE + depends on TEST_KCONFIG + select MODULE_XTIMER + select MODULE_WS281X_ATMEGA if HAS_ARCH_AVR8 + select MODULE_WS281X_VT100 if HAS_ARCH_NATIVE + select MODULE_WS281X_ESP32 if HAS_ARCH_ESP32 + +config MODULE_WS281X_ATMEGA + bool + depends on HAS_ARCH_AVR8 + +config MODULE_WS281X_VT100 + bool + depends on HAS_ARCH_NATIVE + +config MODULE_WS281X_ESP32 + bool + depends on HAS_ARCH_ESP32