Temp-5X

From ArduinoInfo
Jump to: navigation, search
for loop Example ??

/* "for" loop example  */

#define DAYS_IN_A_WEEK    7
#define SUNDAY            0

int dayNow;

void setup()
{
  Serial.begin(9600);

  for (dayNow = SUNDAY; dayNow < DAYS_IN_A_WEEK; dayNow ++)
  {

    Serial.print("Day Number = ");
    Serial.println(dayNow);
  }


}

void loop() {
  // Nothing here this time

}