I always have loved Apple and their non-jerky, fluid like GUI in all of their OS’s. Then I noticed it even with their hardware when I got my MacBook Pro over 3 years ago. My older PC’s always had a flashing sleep LED. That was fine until I saw the “breathing” LED pattern that Apple did on the Mac products. Much nicer. 🙂 I saw these awesome cufflinks with the same “breathing” pattern, and got inspired to write a little Arduino sketch to replicate it. So I did.
This is a really simple sketch, only one thing I did was vary the timing in the fade to smooth out the take off and landing. You will see that in all of the if statements inside the dimming function.
You can download the sketch here.
Pingback: “Breathing” Sleep LED – Arduino cufflinks :) « adafruit industries blog
What is it with you Apple users that make you totally unaware of the rest of the world?
Pulsing LEDs have been around forever but as soon as Apple implement them you are all “Oh my god, they are the coolest thing!!”
I am aware that there were pulsing/fading LED’s long before Apple put them into Macs, but I had never seen them in PC’s prior to that, that’s all. I was PC IT for 5 years before I switched to Mac, and had never seen anything like that.
It’s not really about mac or pc. It’s just a new way to implement old technology. Ferrari didn’t reinvent the wheel or the combustion engine. But there’s no denying it’s beauty and elegance.
Pingback: Electronics-Lab.com Blog » Blog Archive » “Breathing” Sleep LED – Arduino cufflinks :)
Pingback: blog.flo.cx » Non-blocking breathing led for arduino…
Pingback: Speed control, part II « Atmospheric Front
the more efficient way to implement the same sketch could have been using the mod function instead of repeating the same if again and again.
Nice resource still! Thanks
fix the code and re-post.
Sorry you’re having trouble Fernando, I checked the sketch and it compiled in Arduino 1.01 as well as version 22. I also loaded the sketch on a Duemilanove, Uno, Leonardo, and Mega 2560, and they all work fine. Is the sketch not compiling?
I do not know if the code is working or not. I haven’t tried it yet. However Nishant Arora said he could improve the code by using “mod” insteads of “if’s”. So I just suggested for him to submit his code change. I wonder what his code looks like.
we are talking about the modulus function, right?
http://www.arduino.cc/en/Reference/Modulo
No. It’s not that the code is working or not… I haven’t tried the code. Nishant Arora suggested that he could replace the “ifs” with a simple “mod” function. I would like to see his code.
is he talking about modulus? Arduino Modulo Reference:
http://www.arduino.cc/en/Reference/Modulo
I sent a message to Nishant Arora but no response… facebook.com/wrongnumber
I sent a message to Nishant Arora but no response… facebook.com/wrongnumber