  
 void loop() 
 { 
-  
+  //midtide.writeMicroseconds(1250);
   unsigned long now = millis();
   
   // mid tide


// 2 - 2.5 cycles per minute
unsigned long midtide_last = 0; 
unsigned long midtide_interval = 150; //135000; 
byte midtide_direction = 1;
byte midtide_pos = 45;

// 100 secs per cycle
unsigned long longtide_last = 0; 
unsigned long longtide_interval = 500; 
byte longtide_direction = 1;
byte longtide_pos = 45;

// 8 - 14 cycles per minute
unsigned long cri_last = 0; 
unsigned long cri_interval = 26; //600000; 
byte cri_direction = 1;
byte cri_pos = 45;
 
void setup() 
{ 

    cri_last = now;
    if (cri_direction) {
      cri_pos++;
      if (cri_pos <= 1750) {
        cri.writeMicroseconds(cri_pos);
      } else {
        cri_direction = !cri_direction;
      }  
    }
    if (!cri_direction) {
      cri_pos--;
      if (cri_pos >= 1250) {
        cri.writeMicroseconds(cri_pos);
      } else {
        cri_direction = !cri_direction;
      }  
