4051 test sketch

This commit is contained in:
Lukas 2013-02-12 11:51:05 +01:00
parent 457b147001
commit 48475c65e9

View File

@ -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);