Hi everyone -
Library: ver. 3.1
Arduino: 1.6.8
OS: Mac
I’ve been playing around with FastLEDs for a bit for my project, which will be an interactive installation/sculpture. What I’m attempting to do is to trigger an LED animation (in this case “confetti” from the DemoReel100 sketch) when the FSR senses any sort of pressure.
Here’s the code:
I tried to do it so there won’t be any lights when it’s not being “interacted” with (which is why the sketch has “doNothing”) but it seems to keep going back to being “confetti” no matter what. Also tried using different animations, but it looked like a mess. Went back to “confetti”, then slowed it down so there’s a contrast between the “non-interacted” version vs. the FSR-squeezed version. Video shows the point I’ve gotten to, and been stuck there for a while now…
Also, is there a way to keep the “confetti” animation going for a few more seconds after the FSR gets squeezed? So it’ll be: squeeze > let go > light animation goes on for 5 seconds > goes back to normal.
Any advice/help will be greatly appreciated. Thank you!
