Neopixel Basic P038 Multiple instances
Moderators: grovkillen, Stuntteam, TD-er
Neopixel Basic P038 Multiple instances
Subject sums it all.
Is it possible to have multiple NeoPixel Basics plugins running ?
I have access to both of the strips but only with 1 instance in Devices.
At time, it is one or the other.
Not that it is crucial.
Thanks
Is it possible to have multiple NeoPixel Basics plugins running ?
I have access to both of the strips but only with 1 instance in Devices.
At time, it is one or the other.
Not that it is crucial.
Thanks
Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
Thanks
Need to up my configuration skills in the meantime
Need to up my configuration skills in the meantime

Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
I've created a pull request #3909 to add multi-instance as a feature for the NeoPixel (Basic) plugin (P038).
Most likely the Github action builds won't complete, what .bin file are you using?, then I'll upload that build here.
Most likely the Github action builds won't complete, what .bin file are you using?, then I'll upload that build here.
/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
Tried all of them, standard would be ESP_Easy_mega_20211224_normal_ESP32_4M316k
Thanks
Thanks
Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
A local build for PR #3909, that should allow multiple NeoPixel (Basic) tasks to be configured and controlled separately:
/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
Hi
It works … when you address the right one
Many thanks.
Can make time for the application now. Hopefully my part goes as slick as your support
For the record https://espeasy.readthedocs.io/en/late ... f-a-plugin
It works … when you address the right one

Many thanks.
Can make time for the application now. Hopefully my part goes as slick as your support

For the record https://espeasy.readthedocs.io/en/late ... f-a-plugin
Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
Thanks for testing, and the confirmation 

/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
Does this means standard implementation in future releases ?
Thanks again.
The Mrs asked for other stuff.
Technology when it works : goes from pfff superfluous to can you also do this
Thanks again.
The Mrs asked for other stuff.
Technology when it works : goes from pfff superfluous to can you also do this

Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
Yes, this is one of the plugins in the NORMAL builds, so it will be in nearly all available builds once it is merged and released (well, 'max', 'normal' and 'test' that is, the minimal and hardware specific builds don't have this plugin included).
/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
Just tried to update an old setup.
Seems P038 multiple instances is no longer "working" in release after 20220427.
I have tried, I think all of them, after this release date, but no success.
Can you confirm ?
Thanks
Seems P038 multiple instances is no longer "working" in release after 20220427.
I have tried, I think all of them, after this release date, but no success.
Can you confirm ?
Thanks
Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
There is no reason for that, has been tested recently here, so should work fine.
/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
Hi Erased and Erased more, pushed an “empty” file … and succes
Sorry for late reply, ESP is a testbed for a lot of things and for some reason I tested another platform, which left crumbles to make me think ESPEasy was the solution.
Mae culpa …
I believe again and even more
ESPEasy is alive again
Sorry for late reply, ESP is a testbed for a lot of things and for some reason I tested another platform, which left crumbles to make me think ESPEasy was the solution.
Mae culpa …
I believe again and even more

Belgium and land of ESP ... counting 

Re: Neopixel Basic P038 Multiple instances
Hi,
found this post in 2025, trying to use either Neopixel (Basic) or Neopixel (BusFx) on two different GPIO's.
Testing LEDs on one single task enabled is ok.
Two enabled tasks works only for the first.
Firmware is ESP_Easy_mega_20241222_neopixel_ESP32_4M316k
Any idea ? (Does it only work on "normal" builds?)
found this post in 2025, trying to use either Neopixel (Basic) or Neopixel (BusFx) on two different GPIO's.
Testing LEDs on one single task enabled is ok.
Two enabled tasks works only for the first.
Firmware is ESP_Easy_mega_20241222_neopixel_ESP32_4M316k
Any idea ? (Does it only work on "normal" builds?)
Re: Neopixel Basic P038 Multiple instances
Current implementation is using RMT and you only have a very limited amount of RMT channels.
There is work being done to make addressable leds a bit more flexible (using either SPI/I2S/UART), but that's not available yet.
So for now you only can use 1 addressable LED string in ESPEasy.
There is work being done to make addressable leds a bit more flexible (using either SPI/I2S/UART), but that's not available yet.
So for now you only can use 1 addressable LED string in ESPEasy.
Re: Neopixel Basic P038 Multiple instances
Tested today with build from #6.
This is working (commands like 1.neopixel,4,0,0,150 and 2.neopixel,4,0,150,0 are send to different GPIO)
@ath:Is this a custom build?
if yes, how do i manage it to get it running with current version?
Would like to have this for BusFX too, but this is not in included in "normal" build.
This is working (commands like 1.neopixel,4,0,0,150 and 2.neopixel,4,0,150,0 are send to different GPIO)
@ath:Is this a custom build?
if yes, how do i manage it to get it running with current version?
Would like to have this for BusFX too, but this is not in included in "normal" build.
- Attachments
-
- test.PNG (36.29 KiB) Viewed 5628 times
Re: Neopixel Basic P038 Multiple instances
It's a build from the pull request code or 3 years ago, that has been merged not too long after that build was made. So quite old, but it should still work.
The "official" way of addressing specific tasks is to prefix the task name (neo1, neo2) to the command, using a dot as the separator. But you can also use the task number (1, 2), though that's not actively promoted, as when using the task name it's much more visible where the command is supposed to go, and portable when reconfiguring the tasks.
There are a couple of NeoPixel builds (you should use the ESP32 build, without any type-suffix, so not ESP32-S3, etc.) that have all NeoPixel plugins combined, as it wouldn't fit combined with the Normal plugin set. As an alternative, you can get an ESP32 with 8MB or 16MB Flash, and install a MAX build, that has all plugins, and 99.9% of features, included. 8MB Flash and 16MB Flash to support the MAX builds is available on ESP32 (a.k.a. Classic), ESP32-S3 and ESP32-C6.
/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
Tnx for the fast reply,
I used both types of commands 2.Neopixel... and neo2.Neopixel... for testing, i think that is not the problem.
As i mentioned in #14: i used the neopixel build ESP_Easy_mega_20241222_neopixel_ESP32_4M316k but it doesnt work on the same ESP
only the build from your post #6 does.
@TD-er: why do you think i can only adress 1 port? (since there was this request done https://github.com/letscontrolit/ESPEasy/pull/3909)
i don't really understand what HomeJCL did to get it working.
I used both types of commands 2.Neopixel... and neo2.Neopixel... for testing, i think that is not the problem.
As i mentioned in #14: i used the neopixel build ESP_Easy_mega_20241222_neopixel_ESP32_4M316k but it doesnt work on the same ESP
only the build from your post #6 does.
@TD-er: why do you think i can only adress 1 port? (since there was this request done https://github.com/letscontrolit/ESPEasy/pull/3909)
i don't really understand what HomeJCL did to get it working.
Re: Neopixel Basic P038 Multiple instances
TD-er explained that newer builds use RMT for steering the LEDs, and not all ESP32 models have multiple RMT channels available. To similarly use multiple GPIO pins with LEDs won't be possible with only a single RMT channel.
As an alternative, you can use a single GPIO to control all LEDs (I've used over 500 LEDs on a single GPIO, so the number shouldn't be an issue, how many LEDs are to be connected?), and use an offset to control the part that's now on the second GPIO. The plugin does support that.
As an alternative, you can use a single GPIO to control all LEDs (I've used over 500 LEDs on a single GPIO, so the number shouldn't be an issue, how many LEDs are to be connected?), and use an offset to control the part that's now on the second GPIO. The plugin does support that.
/Ton (PayPal.me)
Re: Neopixel Basic P038 Multiple instances
When updating the code to work with Arduino 3.0/ESP-IDF 5.1 I had to get things working as quite a lot of libraries were not yet updated to use those new SDKs.
(well actually, none were, as I was working on the migration before Arduino 3.0/ESP-IDF5.1 was released)
One of the major changes which broke a lot of existing code was direct GPIO access.
This had become about a factor 1000x slower.
Moving the code to only use RMT required the least amount of changes, so that's what I did.
There is some code pending to use addressable LEDs via I2S, SPI or UART.
But I simply didn't have the time yet to implement it for ESPEasy.
(well actually, none were, as I was working on the migration before Arduino 3.0/ESP-IDF5.1 was released)
One of the major changes which broke a lot of existing code was direct GPIO access.
This had become about a factor 1000x slower.
Moving the code to only use RMT required the least amount of changes, so that's what I did.
There is some code pending to use addressable LEDs via I2S, SPI or UART.
But I simply didn't have the time yet to implement it for ESPEasy.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest