    byte currentPattern_ = 0;
    const unsigned long timeOut_ = 1000;
    bool blanking_ = false;
-   bool blankOnHigh_ = true;
+   bool blankOnHigh_ = false;
    bool triggerMode_ = false;
-   int triggerState_ = 0;
+   boolean triggerState_ = false;
  
  void setup() {
    // Higher speeds do not appear to be reliable


       }
    }
    // In trigger mode, we will blank even if blanking is not on..
    if (triggerMode_) {
      int tmp = PIND & inPinBit_;
      if (tmp != triggerState_) {
        if (blankOnHigh_ && (tmp == HIGH) ) {
          PORTB = 0;
        }
        else if (!blankOnHigh_ && (tmp == LOW) ) {
          PORTB = 0;
        }
        else { 

          PORTB = currentPattern_;
        else
          PORTB = 0;
      }  else {
        if (! (PIND & inPinBit_))
          PORTB = 0;
        else  
          PORTB = currentPattern_;
      }
    }
}
