From 48475c65e910a09aec99bd84a8bddb0e8256b81a Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 12 Feb 2013 11:51:05 +0100 Subject: [PATCH] 4051 test sketch --- sketches/testing/_4051_test.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sketches/testing/_4051_test.ino b/sketches/testing/_4051_test.ino index 789468d..d924374 100644 --- a/sketches/testing/_4051_test.ino +++ b/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);