Skip to content

Commit cc18f40

Browse files
committed
ws2812_effects deprecation warning
1 parent 50fcd72 commit cc18f40

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/modules/ws2812_effects.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ static uint8_t get_random_wheel_index(uint8_t pos)
156156
* initialized ws2812_effects with the buffer to use
157157
*/
158158
static int ws2812_effects_init(lua_State *L) {
159+
160+
platform_print_deprecation_note("ws2812_effects",
161+
"soon; please see https://github.com/nodemcu/nodemcu-firmware/issues/3122");
162+
159163
ws2812_buffer * buffer = (ws2812_buffer*)luaL_checkudata(L, 1, "ws2812.buffer");
160164
luaL_argcheck(L, buffer != NULL, 1, "no valid buffer provided");
161165
// get rid of old state

docs/modules/ws2812-effects.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ This module provides effects based on the [WS2812 library](ws2812.md). Some effe
77

88
Note that dual mode is currently not supported for effects.
99

10+
!!! caution
11+
12+
This module is deprecated and will be removed in favor of a generic,
13+
in-Lua implementation soon. (Sooner with help!) Please see
14+
https://github.com/nodemcu/nodemcu-firmware/issues/3122 .
15+
1016
!!! caution
1117

1218
This module depends on the [color utils module](color-utils.md). Things **will** fail if that module is missing in the firmware!

0 commit comments

Comments
 (0)