Merge pull request #13845 from maribu/ws281x

drivers/ws281x: Fix dependencies & doc
This commit is contained in:
benpicco 2020-04-09 15:25:51 +02:00 committed by GitHub
commit 3b5067b5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -794,7 +794,7 @@ ifneq (,$(filter ws281x_%,$(USEMODULE)))
endif
ifneq (,$(filter ws281x,$(USEMODULE)))
FEATURES_REQUIRED_ANY += arch_avr8|arch_native
FEATURES_REQUIRED_ANY += arch_avr8|arch_esp32|arch_native
ifeq (,$(filter ws281x_%,$(USEMODULE)))
ifneq (,$(filter arch_avr8,$(FEATURES_USED)))

View File

@ -48,7 +48,17 @@
*
* ### Usage
*
* Add the following to your `Makefile` to use:
* Add the following to your `Makefile`:
*
* * Auto-selecting the backend:
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Makefile
* USEMODULE += ws281x
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This will automatically pull in one of the backends supported by your board.
* In case multiple backends apply and the automatic selection does not pick
* your preferred backend, you can manually pick your preferred backend as
* described below.
*
* * the ATmega backend:
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Makefile