Skip to content

Commit 47ee60e

Browse files
authored
changed sensor pin
Fixes #5884
1 parent 48bd8f8 commit 47ee60e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
created 17 Jan 2009
2020
modified 30 Aug 2011
2121
by Tom Igoe
22+
modified 20 Jan 2017
23+
by Arturo Guadalupi
2224
2325
This example code is in the public domain.
2426
@@ -28,7 +30,7 @@
2830

2931

3032
// These constants won't change:
31-
const int sensorPin = A2; // pin that the sensor is attached to
33+
const int sensorPin = A0; // pin that the sensor is attached to
3234
const int ledPin = 9; // pin that the LED is attached to
3335
const int indicatorLedPin = 13; // pin that the built-in LED is attached to
3436
const int buttonPin = 2; // pin that the button is attached to

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy