// Demonstration of the following:
// 1. essential program structure and logic
// 2. logic using if () {}
// 3. iteration using loop(), while(){}, and for(){}
// 4. use of Serial port for debugging output

void setup()
{
  Serial.begin(115200);
}

int count = 32700;

// The following shows several possible loop functions, each demonstrating
// different features.  The '#if 0/#endif' pairs are instructions to the
// compiler to ignore an entire block of code.

#if 0
void loop()
{
  count = count + 1;
  Serial.println(count);
  delay(100);
}
#endif


#if 0
void loop()
{
  count = count + 1;  
  Serial.println(count);
  if (count == 32767) {
    count = 32700;
  }
  delay(100);
}
#endif


#if 0
void loop()
{
  while (count < 32767) {
    count = count + 1;  
    Serial.println(count);
    delay(100);    
  }
  count = 32700;
}
#endif

#if 0
void loop()
{
  for (count = 32700; count < 32767; count = count+1) {
    Serial.println(count);
    delay(100);    
  }
}
#endif



  
  
