tfeldmann / arduino-blinkenlight Goto Github PK
View Code? Open in Web Editor NEWNon-blocking fading patterns for single LEDs.
License: MIT License
Non-blocking fading patterns for single LEDs.
License: MIT License
There could be a function like this:
bool pattern(int num, SpeedSetting speed, bool repeat = false)
Then the blink code would play only once, and some action by another function could be taken as soon as the blink is over. Like this:
If I put my hand over a distance sensor, it would blink the number of millimeters that the hand is over the sensor. But then some function could only allow another "distance measure by the sensor" when the number of mms blinked is over. So the bool argument would indicate the end of the blink pattern (for a repeat = false)
Thanks!
Hi! Would it be possible to add support for 2 pin 2 color leds? When one pin is cathode, one color is lit, when itβs anode, another color is lit, and when rapid switching between the two pins a third color is lit.
There are some old libraries that implemented this, but they are not complete as yours!!
Like these ones below:
https://github.com/JamesCoyle/BiLED
https://github.com/wolfgang42/bicolorled/blob/master/examples/MultiSpeed/MultiSpeed.ino
Thanks!
Hi! When using fadinglight, I need to change on the fly the time in ms that fade_speed changes, when using patterns. For instance, If I want to use a pattern blink that takes 2 seconds to be fully on and 2 seconds to be fully off, I need to decrease fade_speed to 2ms. But if I'll use 200 ms to be fully on and then 200 ms to be fully OFF, 30ms as fade_speed works better. So how can I, in the same code change the fade_speed?
Could Fade_speed be put as a parameter inside that speed Setting struct, that allows us to change the pattern blink settings on the fly?
Thanks a lot for your library!
Best Regards, Rodrigo
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.