kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.58k stars 344 forks source link

Added built-in rain effect and bug fixes. See change log. #301

Closed moose4lord closed 2 years ago

ghost commented 2 years ago

how can I edit the library an add more built-in effects?

moose4lord commented 2 years ago

Do you want to create your own effects? Or are you trying to get more of the built-in effects to work on an Arduino?

ghost commented 2 years ago

I want to find other effects people have created and put them in. such as the effects in this project: https://github.com/modustrialmaker/Lightsaber_single_blade_neopixel I have tried the custom effects option and have had tons of problems with it, is there a way I can just put them into the library? Thank you for responding!!!

moose4lord commented 2 years ago

I see. FastLED is a popular library to create custom effects (including the light saber project you mentioned). Unfortunately, WS2812FX and FastLED are not that compatible. The two libraries use different code bases to drive the LED strip, so getting them to work together is a pain. The ws2812fx_custom_FastLED example sketch shows how to combine the two libraries, but it's really just a hack. You need to copy the FastLED code to run the animation, then inject code at the end to copy the FastLED data to the WS282FX instance. It's very messy.

If you have an ESP32 or ESP8266 processor, you might want to look at the WLED project. It has all the WS2812FX effects, plus adds many interesting FastLED effects.

ghost commented 2 years ago

Ok. Thanks for your time. Does the WLED have a github page? would Neopixel patterns work in ws2812fx?

dsssssssss9 commented 2 years ago

Yes it does....

https://github.com/Aircoookie/WLED

Also a Discord Server.... https://discord.gg/wAjbbPSh

moose4lord commented 2 years ago

If you can find NeoPixel effects, they should work with the WS2812FX library. But I don't think you'll find many. I think most people that want to create new effects use FastLED.

ghost commented 2 years ago

Ok. I've been looking into WLED. Is there a way to just use their version of WS2812FX like you would use the normal one? I've tried just copping the code in theirs's and pasting it in yours but that doesn't seem to do anything.

moose4lord commented 2 years ago

I looked at the WLED code and it's using an old, heavily modified version of WS2812FX under the covers. The inner workings of the WLED code is quite different from the WS2812FX code. I tried to get one of the extra WLED effects to compile with WS2812FX, but got many errors.

The WLED effects could probably be made compatible with WS2812FX, but it would take a considerable effort.

ghost commented 2 years ago

ok. thanks for your time.