Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Real-time response animation possible?
#1
Lightbulb 
Is it possible to change the LED colors in real-time?

I guess I better way of putting it is, can I make it so that the lights flicker to music coming through a microphone, or can it only do pre-programmed animations?

Kevin
#2
Absolutely! Check this out: http://maniacallabs.com/2014/11/25/fft-audio-animation-with-bibliopixel-and-the-allpixel/

Also these:

Live webcam view: https://github.com/ManiacalLabs/BiblioPixelAnimations/blob/master/BiblioPixelAnimations/matrix/opencv_video.py

CPU Monitor:
https://github.com/ManiacalLabs/BiblioPixelAnimations/blob/master/BiblioPixelAnimations/matrix/CPUUsage.py

Basically, it's just a matter of in the step() method of your animation grabbing the data you want and then converting that to pixel data to display on the LEDs. Depending on your pixel count and what you are trying to do with the data, you should be able to hit at least 30fps which is good enough to feel "real time".


Forum Jump:


Users browsing this thread: 1 Guest(s)