     }
     else if(b == DUINO_Encoder::Held)
     {
-      // TODO: digital output control
+      gt = true;
+    }
+    else if(b == DUINO_Encoder::Released)
+    {
+      gt = false;
     }
 
     // handle encoder spin


  virtual void loop()
  {
    cv[0] = cv_read(CI1);
    cv[1] = cv_read(CI2);
    cv[2] = cv_read(CI3);

#include <du-ino_function.h>
#include <du-ino_interface.h>

#define GT_INT_DISPLAY_TIME   1000

volatile uint8_t gt_state;
volatile bool gt3_retrigger, gt4_retrigger;
volatile unsigned long gt3_retrigger_time, gt4_retrigger_time;
int8_t calibration_value;
bool gt, gt_io;
float cv[4];
