Skip to content

Commit

Permalink
Small change to EsploraLightCalibrator example
Browse files Browse the repository at this point in the history
Chnaged LOW to HIGH
  • Loading branch information
shfitz committed Dec 23, 2012
1 parent fd1055c commit 7e5ca62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 7e5ca62

Please sign in to comment.