From 7e5ca6244baefbdadaf16b735ff5624d979e3d21 Mon Sep 17 00:00:00 2001 From: Scott Fitzgerald Date: Sun, 23 Dec 2012 11:55:16 -0700 Subject: [PATCH] Small change to EsploraLightCalibrator example Chnaged LOW to HIGH --- .../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 c3eaff429..37469c05d 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) == LOW) { + if (Esplora.readButton(1) == HIGH) { 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) == LOW) { + while(Esplora.readButton(1) == HIGH) { // read the sensor value: int light = Esplora.readLightSensor();