New Method: Easily Fade and Blink LEDs | 🔎Arduino Discoveries
Вставка
- Опубліковано 20 жов 2024
- JLed: An Arduino library that easily extends the functionality of LEDs with simple functions.
JLed Library: bit.ly/2Jmvjk2
🛒GET THE PARTS:
• Buy Arduino: rebrand.ly/ard...
• Buy LEDs: rebrand.ly/led...
• Buy Ultimate Arduino Kit: rebrand.ly/ful...
Learn Arduino for Beginners: sciranch.net/l...
FREE PARTS GUIDE: Go to my website and click the button to get it!
WEBSITE: sciranch.net
INSTAGRAM: / sci_ranch
Cool find! Having to call update() is a little annoying, and is guaranteed to cause stuttering or glitches if you have something that runs long inside your loop. This function should be tied to a timer interrupt.
You can also call update when you initially create the JLed. It would be best to look at the docs for best practices.
I'm glad you enjoyed it!
I thought PWD didn't work with millis "long blinks"