Not understanding what is going on here, only using constants...

Arrch:

timberwolf9:
how would you put the board start code into a function. I need those pin name usable throughout the code.

You should go through the beginning examples to see how the code is organized and put into the proper function.

I'll go ahead and do that, the blink example seems rather simple.

Edit: thank you Arrch, here is the fixed code. Obviously I'm just starting out on Arduino, but this should make things a bit easier knowing how to declare functions.

New and Fixed code:

/* open source arduino engine control program. Written
 and debugged by Bo (las name left out). Made for a go kart being built
 and raced by Charles (las name left out). This version, v 1.0, is open
 source by the GPL v3 License. */
 
// state our inputs for the board
int oilTemp = A2;
int airTemp = A3;
int rpmSensor = 4; //will be a inductance coil used for timing fuel
int throttlePosition = A0; //will measure a variable resistor
int sysVoltage = A1; //need anolog input to read voltage
//all inputs for this board have been stated

//state our outputs for the board
int injectorOut = 6; //needs to be on PWM pin for fine grain control
int fanState = 7; //used to turn the oil cooling fan on or off
int ignitionShort = 8; /* used to ground out the firing coil if the engine
 exceeds the operating temp threshold. This will effectively stop the 
 engine from running while overheated. */
int oilTL = 9; //light for engine overheat warning. 
//pulses for possible alert, stays on when condtion reached.
int lowVL = 10; //low voltage light, comes on at 10.4 volts
int overRPML = 11; //comes on when engine RPM becomes too high
// int CoilOff = 12 later: brownout state for injector coil
void setup() {
//set inputs
pinMode(oilTemp, INPUT);
pinMode(airTemp, INPUT);

//set outputs
pinMode(injectorOut, OUTPUT);
pinMode(fanState, OUTPUT);
pinMode(ignitionShort, OUTPUT);
pinMode(oilTL, OUTPUT);
pinMode(lowVL, OUTPUT);
pinMode(overRPML, OUTPUT);
}

void loop() {
 RunTime();
}

void RunTime() {
  testLights();
}

void testLights() {
//test lights
digitalWrite(oilTL, HIGH);
digitalWrite(lowVL, HIGH);
digitalWrite(overRPML, HIGH);
delay(2500);
//2.5 second test period for testing dummy lights
digitalWrite(oilTL, LOW);
digitalWrite(lowVL, LOW);
digitalWrite(overRPML, LOW);
}