Skip to content

Commit a2f7def

Browse files
committed
Changing analog pin for analog read out to A0 since this define is also available across most ESP8266 boards
1 parent b63b821 commit a2f7def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ArduinoIoTCloud_LED_switch/ArduinoIoTCloud_LED_switch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void setup() {
4949
void loop() {
5050
ArduinoCloud.update();
5151

52-
int potentiometer = analogRead(A1);
52+
int potentiometer = analogRead(A0);
5353

5454
}
5555

0 commit comments

Comments
 (0)