 				Serial1.print("value change (+1): ");
 				Serial1.println(encoders[i].value, DEC);
 #endif
+#ifdef MIDI
+				usbMIDI.sendControlChange(encoders[i].control, encoders[i].value, channel);
+#endif
 			}
 		}
 		// decrease?


#define BUTTONS 16
button_t buttons[BUTTONS] = {
	{ &mcp0, 6,  false },
	{ &mcp0, 7,  false },
	{ &mcp0, 14, false },
	{ &mcp0, 15, false },

// NOTE: dacb has edited the Adafruit library to include a call to 
// Wire.setClock after Wire.begin to increase the i2c clock to 1.7M
// which is an allowed rate in the MCP23017 datasheet

#undef MIDI
#define MIDI
#ifdef MIDI
const int channel = 1;
#endif

#undef DEBUG
#define DEBUG
