Skip to content

Commit 5d8106b

Browse files
committed
fix(examples): Update AnalogRead example to read from pin 2; adjust CI configurations for consistency
1 parent 14494db commit 5d8106b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

libraries/ESP32/examples/AnalogRead/AnalogRead.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ void setup() {
77
}
88

99
void loop() {
10-
// read the analog / millivolts value for pin 0:
11-
int analogValue = analogRead(0);
12-
int analogVolts = analogReadMilliVolts(0);
10+
// read the analog / millivolts value for pin 2:
11+
int analogValue = analogRead(2);
12+
int analogVolts = analogReadMilliVolts(2);
1313

1414
// print out the values you read:
1515
Serial.printf("ADC analog value = %d\n", analogValue);

libraries/ESP32/examples/AnalogRead/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ upload-binary:
1818
- h47.2
1919
- v-115.2
2020
- - pot1:SIG
21-
- esp:0
21+
- esp:2
2222
- green
2323
- - v144
2424
- h191.6
@@ -42,7 +42,7 @@ upload-binary:
4242
- h47.2
4343
- v-96
4444
- - pot1:SIG
45-
- esp:0
45+
- esp:2
4646
- green
4747
- - v124.8
4848
- h210.8

libraries/Wire/examples/LiquidCrystal_I2C/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
libs:
22
- LiquidCrystal_I2C@2.0.0
3-
43
upload-binary:
54
targets:
65
- esp32

0 commit comments

Comments
 (0)