[Tinyos-help] for loop
Michael Schippling
schip at santafe.edu
Sun Mar 2 10:38:22 PST 2008
This is a pretty good free C language tutorial:
http://en.wikibooks.org/wiki/C_Programming
but something like this should work:
int i;
for( i=2; i<=4; ++i )
{
// do stuff with "i"
}
MS
Vassilios Papacharalambous wrote:
> hi, i am trying to make a nesc code and i need to make a for loop. i
> want to increase a variable between 2-4 by incriments of one at a time.
> i need the code to use the variable at that time to run the complete
> code and then increase the variable and run it again. what are the
> commands for such a for loop?
> ------------------------------------------------------------------------
> She said what? About who? Shameful celebrity quotes on Search Star!
> <http://www.msnsearchstar.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew
More information about the Tinyos-help
mailing list