After many frustrating hours spent debugging a routine, I have finally shaved it down to this!
This will NOT print correctly. Why?
I hope this is something trivial or might there be a problem with IDE. Mac 10.6.2 arduino 17
It looks like the references to a[1] are past the end of a[], which is declared to be one element in length, whose name would therefore be a[0], would it not?
It looks like the references to a[1] are past the end of a[], which is declared to be one element in length, whose name would therefore be a[0], would it not?
Aarrgh… thanks guys. my self inflicted injuries will heal soon. (not really very deep) Obviously didn’t have an escape line in mental loop! kept assuming A[1] means 2 item (0,1)
for(int i=1; i<=,100, 1++){ // in red chalk on blackboard
print “Consider EVERY line, stupid. It ain’t THAT hard.”
}
Again, thanks Forum Guys.
for(int i=1; i<=[glow],[/glow]100, [glow]1++[/glow]){ // in red chalk on blackboard
[glow]Serial.[/glow]print[glow]([/glow]"Consider EVERY line, stupid. It ain't THAT hard."[glow]);[/glow]
}