Where does oneAfterAnotherNoLoop(); come from? (obvious question)

Hello all. I'm new to arduino, and i have a sparkfun kit that came with an Uno board. The second experiment has this line of code: oneAfterAnotherNoLoop(); I looked for it on the Arduino reference page, but it's not there. Is that list not complete? I'm just asking because I want to have access to a full list of the references (this is my first programing language aside from a bit of Javascript, which is technically not a language), and if the list on the arduino page isn't complete then I need to find one that is. Thanks!

Without seeing the code I'm just grasping in thin air here. But that looks like a loop that's been defined within the program you're looking at and/or trying to code.

the code is on page 13 of this PDF: http://www.antratek.nl/pdf/ARDX-EG-SPAR-WEB.pdf

Exactly, it's a route that's been defined in the program. So that page is divided into two columns. In the first column, in the loop(), the routine oneAfterAnotherNoLoop() is called. In the second column you see where it's actually defined and what it does. And the code in the PDF isn't complete either. You need to click on the ARDX link at the top of the page.

Red_Raven:
the code is on page 13 of this PDF: http://www.antratek.nl/pdf/ARDX-EG-SPAR-WEB.pdf

That is a function that was written by the programmer. It is not one of the standard Arduino functions.

You see, this atrocious piece of learning code is where the function is defined.

void oneAfterAnotherNoLoop(){
  int delayTime = 100; //the time (in milliseconds) to pause between LEDs
                       //make smaller for quicker switching and larger for slower
  digitalWrite(ledPins[0], HIGH);  //Turns on LED #0 (connected to pin 2 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[1], HIGH);  //Turns on LED #1 (connected to pin 3 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[2], HIGH);  //Turns on LED #2 (connected to pin 4 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[3], HIGH);  //Turns on LED #3 (connected to pin 5 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[4], HIGH);  //Turns on LED #4 (connected to pin 6 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[5], HIGH);  //Turns on LED #5 (connected to pin 7 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[6], HIGH);  //Turns on LED #6 (connected to pin 8 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[7], HIGH);  //Turns on LED #7 (connected to pin 9 )
  delay(delayTime);                //waits delayTime milliseconds  
 
//Turns Each LED Off
  digitalWrite(ledPins[7], LOW);  //Turns on LED #0 (connected to pin 2 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[6], LOW);  //Turns on LED #1 (connected to pin 3 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[5], LOW);  //Turns on LED #2 (connected to pin 4 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[4], LOW);  //Turns on LED #3 (connected to pin 5 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[3], LOW);  //Turns on LED #4 (connected to pin 6 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[2], LOW);  //Turns on LED #5 (connected to pin 7 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[1], LOW);  //Turns on LED #6 (connected to pin 8 )
  delay(delayTime);                //waits delayTime milliseconds
  digitalWrite(ledPins[0], LOW);  //Turns on LED #7 (connected to pin 9 )
  delay(delayTime);                //waits delayTime milliseconds  
}

Than, when it's called later in the main loop here, that's the set of instructions that it follows.

void loop()                     // run over and over again
{
  oneAfterAnotherNoLoop();   //this will turn on each LED one by one then turn each off
  //oneAfterAnotherLoop();   //does the same as oneAfterAnotherNoLoop but with 
                             //much less typing
  //oneOnAtATime();          //this will turn one LED on then turn the next one
                             //on turning the 
                             //former off (one LED will look like it is scrolling 
                             //along the line
  //inAndOut();              //lights the two middle LEDs then moves them out then back 
                             //in again
}

The Sparkfun kit and guide are great introductions to the hardware. You should see if you can pick up a book, like Beginning Arduino, to learn the code side a little bit.

-Ian

Ok so its like a variable. thanks! oh, and i do have a book (its the PDF that i linked to. it came with the kit). I also have 30 arduino projects for the evil genious, but its a bit more complex than the simple PDF/booklet from the sparkfun kit.

I think iyeager meant to get a different book. I've done those examples too, and while they're useful for learning how to plug the hardware together, as a guide to learning programming, they're pretty poor. Google for 'c tutorial', or get hold of a copy of Kernighan and Ritchie's 'The C Programming Language'.

K&R is good as a reference, but a more practical introduction is Kelley and Pohl's "A Book on C"

Fair enough. I've not seen that one, and when I started C, Sun were giving K&R out as part of the course (although that was a while ago now).