Permalink
Browse files

updated pin assignments in control_change to match the MIDI Shield

  • Loading branch information...
1 parent d348212 commit a69ea1da9b979cf22413d3d857230140fbd6a314 @vinmarshall committed Mar 13, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 control_change/control_change.pde
@@ -39,9 +39,9 @@
#include <SparkSoftLCD.h> // download from http://openmoco.org/node/153
#include <MIDI.h> // download from http://sourceforge.net/projects/arduinomidilib
-#define BUTTON_PIN 2 // Pushbutton
-#define LCD_PIN 4 // Serial LCD RX line
-#define POT_PIN A0 // Potentiometer wiper
+#define BUTTON_PIN 2 // Pushbutton (MIDI Shield button D2)
+#define LCD_PIN 5 // Serial LCD RX line
+#define POT_PIN A0 // Potentiometer wiper (MIDI Shield knob A0)
#define INTERVAL 50 // Timer interval
#define THRESHOLD 5 // Hysterisis threshold
@@ -58,6 +58,7 @@ int value; // Control value
void setup() {
// Serial LCD Setup
pinMode(LCD_PIN, OUTPUT);
+ delay(500);
lcd.begin(9600);
lcd.clear();
lcd.cursor(0); // hide cursor

0 comments on commit a69ea1d

Please sign in to comment.