Skip to content

Commit 7e5ca62

Browse files
committed
Small change to EsploraLightCalibrator example
Chnaged LOW to HIGH
1 parent fd1055c commit 7e5ca62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Esplora/examples/Beginners/EsploraLightCalibrator/EsploraLightCalibrator.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void setup() {
3232

3333
void loop() {
3434
// if switch 1 is pressed, go to the calibration function again:
35-
if (Esplora.readButton(1) == LOW) {
35+
if (Esplora.readButton(1) == HIGH) {
3636
calibrate();
3737
}
3838
// read the sensor into a variable:
@@ -64,7 +64,7 @@ void calibrate() {
6464
Serial.println("While holding switch 1, shine a light on the light sensor, then cover it.");
6565

6666
// calibrate while switch 1 is pressed:
67-
while(Esplora.readButton(1) == LOW) {
67+
while(Esplora.readButton(1) == HIGH) {
6868
// read the sensor value:
6969
int light = Esplora.readLightSensor();
7070

0 commit comments

Comments
 (0)