I have been having some issues in learning how to code since i discovered that the delay function is more of a curse than a blessing. Now, i saw some tutorials about millis and i don’t know how to implement them in my code, the blink rate for my Led’s is not the same, i need something like 700 on 2300 off, and i don’t know how to do that. I tried setting up different intervals (interval1=700 ; interval2=2300) and i’m still blocked in it. Can someone offer a sample of this type of code, i need something like this :
Green1=2300 → Blue1=700 ->Green2=2300 ->Blue2=700 ->Green3=2300 → Blue3=700.
You can just send me a pice of code that includes 2 Led’s and i will try to figure out myself how to expand it, i just don’t know how to set the time high and time low on each one of them.
I have also tried using this type of arrangement in my code just to see if it works, and it does keep the display on while running the LED loop, but is it a good idea or not?
sketch_sep27a.ino (757 Bytes)