From 957d7d480f6ae238923524427c2e2a04a45a7468 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Sun, 23 Dec 2012 20:29:43 -0500 Subject: [PATCH] Revert "Small change to EsploraLightCalibrator example" This reverts commit 7e5ca6244baefbdadaf16b735ff5624d979e3d21. --- .../EsploraLightCalibrator/EsploraLightCalibrator.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino b/libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino index 37469c05d..c3eaff429 100644 --- a/libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino +++ b/libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino @@ -32,7 +32,7 @@ void setup() { void loop() { // if switch 1 is pressed, go to the calibration function again: - if (Esplora.readButton(1) == HIGH) { + if (Esplora.readButton(1) == LOW) { calibrate(); } // read the sensor into a variable: @@ -64,7 +64,7 @@ void calibrate() { Serial.println("While holding switch 1, shine a light on the light sensor, then cover it."); // calibrate while switch 1 is pressed: - while(Esplora.readButton(1) == HIGH) { + while(Esplora.readButton(1) == LOW) { // read the sensor value: int light = Esplora.readLightSensor();