Browse Source

4051 test sketch

master
Lukas 11 years ago
parent
commit
48475c65e9
  1. 3
      sketches/testing/_4051_test.ino

3
sketches/testing/_4051_test.ino

@ -65,11 +65,12 @@ void loop() {
if (pots[0] < read - tolerance || pots[0] > read + tolerance) {
pots[0] = read;
Serial.print("pot 0: ");
//print value between 0 & 127 like MIDI velocity ;)
Serial.print(pots[0]/8);
Serial.println();
}
//get Y1 of 4051
//get Y1 of 4051, analog to Y0
digitalWrite(s0, HIGH);
digitalWrite(s1, LOW);
digitalWrite(s1, LOW);

Loading…
Cancel
Save