   oontz.clear();
   oontz.writeDisplay();
   memset(grid, 0, sizeof(grid));
+  e.setBounds(60 * 4, 480 * 4 + 3); // Set tempo limits
+  e.setValue(bpm * 4);              // *4's for encoder detents
 }
 
 // Turn on (or off) one column of the display


#define WIDTH     ((sizeof(T) / sizeof(T[0])) * 2)
#define N_BUTTONS ((sizeof(T) / sizeof(T[0])) * 16)

uint8_t       grid[WIDTH];                 // Sequencer state
uint8_t       heart        = 0,            // Heartbeat LED counter

    }
    prevBeatTime = t;
    refresh      = true;
    bpm          = e.getValue() / 4; // Div for encoder detents
    beatInterval = 60000L / bpm;
  }

  if(refresh) oontz.writeDisplay();
