Comments (2)
Hello @francoisoudot
Honestly I'm not actually sure where the 5 comes from in the 5/NUM_LEDS/2 part. Chris Thodey's original setup had 78 pixels and he might have determined that a multiplier of 5 gave the "correct look" when taking into consideration the average time for a heartbeat QRS interval (or maybe it was the heartbeat QT interval?).
With his 78 pixels that first part would give around 5/78/2 = .128
With my 32 pixel example that first part would give 5/32/2 = .3125
Of course if you only had 2 pixels or 200 pixels it would be very different (giving 5 and .05 respectively). If you aren't getting a nice "heartbeat" look, maybe try changing that multiplier a tiny bit?
Also try setting your NUM_LEDS to 32 to see the heartbeat look I'm getting if you didn't try that yet.
Here's the original G+ thread (which also has Mark's thoughts and Chris's code) which I based mine on.
https://plus.google.com/+ChrisThodey/posts/UdyqYt318gF
Let me know what you discover and I would be curious to know how may pixels you have in your setup.
And of course feel free to make a new FastLED G+ post too showing off what you're working on or if you want more people to see your question. (If you post in that old G+ thread only those that originally commented would be likely to see it, so probably best to start a new one.)
Cheers,
marc
from fastled_examples.
from fastled_examples.
Related Issues (4)
- adding extra segments HOT 5
- Color palette half working HOT 7
- palette_example2.ino HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastled_examples.