Permalink
Browse files

See on the black rubber, added digitalWrite(sensPin, LOW); // turn pu…

…llups off - or it won't work, if somebody is able to explain me this one that will be great

Signed-off-by: gbriand <gbriand@gmail.com>
  • Loading branch information...
1 parent 719cd0b commit d3531a1f49f1276cb1e50f1231cd7ca6b474d468 @gbriand gbriand committed Mar 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 ArduinoLibraries/QTISensor/QTISensor.cpp
@@ -23,8 +23,8 @@ int QTISensor::pulseQTI(int pin)
digitalWrite(pin, HIGH); // Discharges capacitor
delay(1);
pinMode(pin, INPUT);
- //digitalWrite(pin, LOW);
- while(digitalRead(pin) && !fail) { // Wait for pin to go low
+ digitalWrite(pin, LOW); // turn pullups off - or it won't work
+ while(digitalRead(pin) && !fail) { // Wait for pin to go low
timecount++;
if(timecount > TIMEOUT)
fail = true;

0 comments on commit d3531a1

Please sign in to comment.