well thank you, I read everything I can get my hands on, some of it makes sense some doesn't. I have done or followed through 100's of online tutorials and completed the task or project being given.
I have read through all the definitions in the reference section, and again, some make sense and some don't. I can do a lot of things now that I had no idea how to do 3 or 4 weeks ago.
aarg, you are welcome as a seasoned programmer, as a comedian, not so much. just give me a break, and help me through this. this may not be the place to break down a specific program, but! it's short and if you could bear with me and let me go through it, line by line, I believe it would open doors for me. and I would be greatly appreciative.
as for a violatile local int. well the local I believe would appear inside a, say loop, wherein it is locked into that portion of the code, meaning it couldn't accidently be picked up as a global might. violatile, to me is unstable requiring some sort of constraint or special condition. as for me it is either a straight jacket or solitary. I will go look it up though!
I only have a couple more questions. then I will get out of the way......
this part surprised me, I would have thought the opposite. I realize what is below this has a bearing on it, but can you explain it?
digitalWrite(ledPin1, LOW); //led1 on?
digitalWrite(ledPin2, HIGH); //led2 off?
and then this question about millis
if (currentTime - led1StartTime >= led1Period)
the way interpret this is: currenttime // is how much time has elapsed since the clock started? the clock starts as soon as you get to that piece of code?
which seems it would make the, led1StartTime // ZERO?
so if it runs for 7 sec - 0 it is >= led1period // is false
.....................8 is false
.....................10 is true
so in a sense it is a 10 second timer?
yea I know it's elementary, but if I can get a command on timing and delays I will be on my way
then there will be just 1 more ? later. if I haven't figured it out by then, thanks again
aarg what's your all time favorite dan?