giladaya / arduino-particle-sys Goto Github PK
View Code? Open in Web Editor NEWA particle system library for arduino
A particle system library for arduino
hello,
i like ur particle System very much and build at this time a mood lamp. I want that the user can change the effect. In my example from fire to spin.
My Problem, how can i init both effects at the same time. I try this with follow code:
´´´
PartMatrix pMatrix;
// Spin
Particle_Bounce particles_bounce[numParticles];
Emitter_Spin emitter_spin(112, 112, 5, 7);
ParticleSys pSys_spin(numParticles, particles_bounce, &emitter_spin);
// Flame
Particle_Std particles_std[numParticles];
Particle_Fixed source;
Emitter_Fountain emitter_fountain(0, 0, 5, &source);
ParticleSys pSys_flame(numParticles, particles_std, &emitter_fountain);
...
// User can change between effects
pSys_flame.update();
// OR
pSys_spin.update();
´´´
Flame works wonderfull, but only the spin effect do nothing. May this is the wrong way or both effects use same memory? Or i have to use different PartMatrix?
Is there a way to make the matrix display the fire animation, but cycle through the different colors?
hi guys
I add this library into my Arduino library and then lunch the the examples of the library , but faced with the following error
In file included from GreenFireFastLED.ino:16:0:
\arduino-1.6.4\libraries\FastLED_3.1.0/FastLED.h: In static member function 'static CLEDController& CFastLED::addLeds(CRGB*, int, int)':
\arduino-1.6.4\libraries\FastLED_3.1.0/FastLED.h:326:32: error: 'CSmartMatrixController' does not name a type
case SMART_MATRIX: { static CSmartMatrixController controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
^
\arduino-1.6.4\libraries\FastLED_3.1.0/FastLED.h:326:83: error: 'controller' was not declared in this scope
case SMART_MATRIX: { static CSmartMatrixController controller; return addLeds(&controller, data, nLedsOrOffset, nLedsIfOffset); }
^
Error compiling.
Hello. First, thanks a lot for the quality of the programs (and sorry for my english grammar...i'm french...).
I tried theses examples with IDE 1.05-R2 and IDE 023 and i had some compilation errors.
So my question is : for wich version of IDE does it works ?
Thanks in advance.
Regards,
Thierry from France
I'm trying to use this with a 32x32 matrix. I've changed the constants in PsConstants.h, and all I get is a little 8x8 square. It displays properly, so it's just the rendering somewhere.
Please help!
This looks like a great library! But is this compatible a mono-chrome 8x8 matrix? Or would there be an easy way to make it compatible? The different color selection would obviously be ignored.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.