Show Posts
Pages: 1 ... 1172 1173 [1174] 1175 1176 ... 1918
17596  Using Arduino / Programming Questions / Re: How do you check the Length of an Array? on: February 04, 2012, 05:56:14 am
sizeof(ledPins)  is 16, so you wouldn't want to use that for your loop control.
17597  Community / Bar Sport / Re: Philosophical debate on language leads to question on: February 04, 2012, 04:11:38 am
Even mathematicians have big problems with C
Code:
x = x + 1;
is clearly nonsense!
17598  Using Arduino / Programming Questions / Re: toggling a true / false value each time a loop is called on: February 03, 2012, 05:13:14 pm
Psst, Fletcher, see reply #2.  smiley-wink
17599  Using Arduino / Programming Questions / Re: the counter restart when the address reach 256 on: February 03, 2012, 03:53:16 pm
As a courtesy to other users, will you pleaase auto-format your code before posting, and remove excess whitespace?
17600  Using Arduino / Programming Questions / Re: autonomous robot on: February 03, 2012, 01:47:44 pm
Ok, so do you have code to drive the sonar?
Do you have code to drive the servo?
Do you have code to drive the motors?
17601  Using Arduino / Programming Questions / Re: autonomous robot on: February 03, 2012, 01:43:05 pm
A name, a link to a page describing the device, a spec.
The usual stuff.
17602  Using Arduino / Programming Questions / Re: toggling a true / false value each time a loop is called on: February 03, 2012, 01:39:36 pm
No, the compiler ignores white space, however it doesn't ignore the order of operands.
17603  Using Arduino / Programming Questions / Re: toggling a true / false value each time a loop is called on: February 03, 2012, 01:34:23 pm
Write it
Code:
if ( false = TickTock)
, and the compiler will flag the error for you.
17604  Using Arduino / Programming Questions / Re: autonomous robot on: February 03, 2012, 01:32:50 pm
I was also looking for some sensor details.
Vague hand-waving doesn't work on me.
17605  Using Arduino / Programming Questions / Re: autonomous robot on: February 03, 2012, 01:20:46 pm
Still pretty incomplete.
17606  Using Arduino / Programming Questions / Re: toggling a true / false value each time a loop is called on: February 03, 2012, 01:20:02 pm
You need to go back to the reference page and look at the section on "scope".

Also, you need to post ALL your code.
17607  Using Arduino / Programming Questions / Re: help me with a loop on: February 03, 2012, 01:18:37 pm
You really need to give those pin numbers names, or your code is very quickly going to become unmanageable.
17608  Using Arduino / Programming Questions / Re: autonomous robot on: February 03, 2012, 01:12:50 pm
You've shown us an incomplete list of ingredients; where is your recipe?
17609  Community / Bar Sport / Re: Philosophical debate on language leads to question on: February 03, 2012, 01:01:09 pm
Changing keywords/reserved words in a programming to match the native language is relatively simple, but imagine, for instance, COBOL in German, with the verb at the end!   smiley-grin
17610  Using Arduino / Programming Questions / Re: help me with a loop on: February 03, 2012, 09:55:19 am
Re: reply #2.

NO!
Check scope.
Pages: 1 ... 1172 1173 [1174] 1175 1176 ... 1918