These are chat archives for Makuna/NeoPixelBus

17th
Jun 2018
Ed Skinner
@edsmskinner
Jun 17 2018 02:02
Hi Mike I hope you read the code. i didn't want to take up a bunch of space here so I removed it. Please let me know where I went wrong. Thanks!
Michael Miller
@Makuna
Jun 17 2018 03:01
Don't remove, it's ok to leave it, won't be able to look at this until later tonight
Ed Skinner
@edsmskinner
Jun 17 2018 03:11
ok no worries. didn't want to be a nuisance. :)
Michael Miller
@Makuna
Jun 17 2018 06:24
I am a little confused as to what you are doing the loop, after the FadeOut() call.
progressHolderwill always be 1.0 after the first run; so that check is not really needed. This is due to the fact the IsAnimating will return false only after completing the animation.
Further, The code in FadeOut() will always fade to black, so the first run it fade from your given colors to black, the second run it will fade from its current color (already black) to black. Did you mean to set the colors than call FadeOut?
Ed Skinner
@edsmskinner
Jun 17 2018 06:29
I am trying to reset the animation so it will start over
Michael Miller
@Makuna
Jun 17 2018 06:31
But in your methodFadeOut, you reset the parameters for animation, using the getPixelColor, which is going to be black after the first call; so move the FadeOut after changing the colors
Ed Skinner
@edsmskinner
Jun 17 2018 06:32
ok I am trying that now
Ok thank you... It always seems to be something simple.
Michael Miller
@Makuna
Jun 17 2018 06:36
well, animations are a complex topic, and wiki really only covers the very basics; so don't beat yourself up over it.
Ed Skinner
@edsmskinner
Jun 17 2018 06:36
For running multiple animations i can simply call different functions similar to FadeOut and adjust the callbacks to do what I want right?
Michael Miller
@Makuna
Jun 17 2018 06:37
Yes, the thing is that they should not effect the same pixels. Like having one change colors and another change brightness of the same pixels, that won't work.
Ed Skinner
@edsmskinner
Jun 17 2018 06:38
At the same time?
Michael Miller
@Makuna
Jun 17 2018 06:38
Well, they can effect the same pixels, but just don't run them at the same time.
Ed Skinner
@edsmskinner
Jun 17 2018 06:38
ahh yea got it
Thank you very much Mike. Awesome library!!! The animation object is a cool treat that is very useful
Michael Miller
@Makuna
Jun 17 2018 06:39
I think one of the samples demonstrates a flip flop animation, one dims and then starts the brighten, the brighten when finishes starts a dim. A way to get a flashing light.
(useful to mimic an incandescent lamp, where it brightens fast, and dims slow).
good luck, have fun, and good night (at least here)
Ed Skinner
@edsmskinner
Jun 17 2018 06:41
I have written a lot of animations by hand and this takes the whole timing management out of context
it takes care of it all. Good night as well. Yep its almost 3am here so yea i guess its morning
Michael Miller
@Makuna
Jun 17 2018 06:42
Ah, yeah, your florida, I am west coast so only midnight ;-)
Ed Skinner
@edsmskinner
Jun 17 2018 06:42
Thanks again! Take Care
PeterOFre
@PeterOFre
Jun 17 2018 07:06
@Makuna, I am using the newest NeoPixelCode, downloaded yesterday. The code is working, but it make the LCD and SD Card Reader code not working.
PeterOFre
@PeterOFre
Jun 17 2018 11:21
@Makuna Hello Michael, based on your reaction it looks like that there is no know issue with SD Card/LCD and NeoPixelBus. :-) Have tried your example 'NeoPixelBitmap.ino' and the file String.bmp could only read when I have moved the strip.Begin() command after the SD Card read. Do you have an example with TFT-LCD and TFT-SD card lines ? Thank you in advance / Greetings from Freiburg/Germany :-) Peter
Michael Miller
@Makuna
Jun 17 2018 17:59
@PeterOFre Read this part of the Wiki. I can't test compatibility against all libraries, so it may be a problem. While moving the strip.Begin() after other systems has been noted on Esp8266, it hasn't been reported yet for esp32.
If you are using i2s for something else, then you can't use it NeoPixels (they aren't i2s, I am just using the hardware feature for my purposes).
PeterOFre
@PeterOFre
Jun 17 2018 18:52
@Makuna Thank you Michael, is there a way to undo/disable the strip.Begin() command and enable it only when an output to the neopixels should happen ?
PeterOFre
@PeterOFre
Jun 17 2018 19:09
@Makuna, Hello Michael, have read the Wiki and tried the different methods. With 'NeoEsp32BitBang800KbpsMethod' I can use the LCD, but the first 25 LEDs are bright white, the 26.th LED is yellow and any setPixelColor command is ignored.
PeterOFre
@PeterOFre
Jun 17 2018 19:30
@Makuna Hello Michael, sorry that I have disturbed you, because it is all my fault. I have used Pin 18 to send the pixel out, but this pin is already used by the TFT clock. Have a nice day ! Peter
Michael Miller
@Makuna
Jun 17 2018 20:34
Good info to share in the wiki 😁