Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
a04b085d
Commit
a04b085d
authored
May 26, 2020
by
Nathaniel Wesley Filardo
Committed by
Marcel Stör
Jun 09, 2020
Browse files
ws2812_effects deprecation warning
parent
98e428f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/modules/ws2812_effects.c
View file @
a04b085d
...
...
@@ -156,6 +156,10 @@ static uint8_t get_random_wheel_index(uint8_t pos)
* initialized ws2812_effects with the buffer to use
*/
static
int
ws2812_effects_init
(
lua_State
*
L
)
{
platform_print_deprecation_note
(
"ws2812_effects"
,
"soon; please see https://github.com/nodemcu/nodemcu-firmware/issues/3122"
);
ws2812_buffer
*
buffer
=
(
ws2812_buffer
*
)
luaL_checkudata
(
L
,
1
,
"ws2812.buffer"
);
luaL_argcheck
(
L
,
buffer
!=
NULL
,
1
,
"no valid buffer provided"
);
// get rid of old state
...
...
docs/modules/ws2812-effects.md
View file @
a04b085d
...
...
@@ -7,6 +7,12 @@ This module provides effects based on the [WS2812 library](ws2812.md). Some effe
Note that dual mode is currently not supported for effects.
!!! caution
This module is deprecated and will be removed in favor of a generic,
in-Lua implementation soon. (Sooner with help!) Please see
https://github.com/nodemcu/nodemcu-firmware/issues/3122 .
!!! caution
This module depends on the [color utils module](color-utils.md). Things **will** fail if that module is missing in the firmware!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment