Skip to content

Commit 93d4b61

Browse files
committed
update examples
1 parent 82f17ce commit 93d4b61

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

examples/comparator/comparator.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ void setup(void)
1515
// The ADC input range (or gain) can be changed via the following
1616
// functions, but be careful never to exceed VDD +0.3V max, or to
1717
// exceed the upper and lower limits if you adjust the input range!
18-
// Setting these values incorrectly may destroy your ADC!
1918
// ADS1015 ADS1115
2019
// ------- -------
2120
// ads.setGain(GAIN_TWOTHIRDS); // 2/3x gain +/- 6.144V 1 bit = 3mV 0.1875mV (default)
@@ -42,4 +41,4 @@ void loop(void)
4241
Serial.print("AIN0: "); Serial.println(adc0);
4342

4443
delay(100);
45-
}
44+
}

examples/continuous/continuous.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ void setup(void)
2929
// The ADC input range (or gain) can be changed via the following
3030
// functions, but be careful never to exceed VDD +0.3V max, or to
3131
// exceed the upper and lower limits if you adjust the input range!
32-
// Setting these values incorrectly may destroy your ADC!
3332
// ADS1015 ADS1115
3433
// ------- -------
3534
// ads.setGain(GAIN_TWOTHIRDS); // 2/3x gain +/- 6.144V 1 bit = 3mV 0.1875mV (default)
@@ -45,8 +44,8 @@ void setup(void)
4544
}
4645

4746
pinMode(READY_PIN, INPUT);
48-
// We get a falling edge every time a new sample is ready.
49-
attachInterrupt(digitalPinToInterrupt(READY_PIN), NewDataReadyISR, FALLING);
47+
// With default COMP_POL=0, get a rising edge every time a new sample is ready.
48+
attachInterrupt(digitalPinToInterrupt(READY_PIN), NewDataReadyISR, RISING);
5049

5150
// Start continuous conversions.
5251
ads.startADCReading(ADS1X15_REG_CONFIG_MUX_DIFF_0_1, /*continuous=*/true);

examples/differential/differential.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ void setup(void)
1414
// The ADC input range (or gain) can be changed via the following
1515
// functions, but be careful never to exceed VDD +0.3V max, or to
1616
// exceed the upper and lower limits if you adjust the input range!
17-
// Setting these values incorrectly may destroy your ADC!
1817
// ADS1015 ADS1115
1918
// ------- -------
2019
// ads.setGain(GAIN_TWOTHIRDS); // 2/3x gain +/- 6.144V 1 bit = 3mV 0.1875mV (default)

examples/nonblocking/nonblocking.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ void setup(void)
1414
// The ADC input range (or gain) can be changed via the following
1515
// functions, but be careful never to exceed VDD +0.3V max, or to
1616
// exceed the upper and lower limits if you adjust the input range!
17-
// Setting these values incorrectly may destroy your ADC!
1817
// ADS1015 ADS1115
1918
// ------- -------
2019
// ads.setGain(GAIN_TWOTHIRDS); // 2/3x gain +/- 6.144V 1 bit = 3mV 0.1875mV (default)

examples/singleended/singleended.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ void setup(void)
1414
// The ADC input range (or gain) can be changed via the following
1515
// functions, but be careful never to exceed VDD +0.3V max, or to
1616
// exceed the upper and lower limits if you adjust the input range!
17-
// Setting these values incorrectly may destroy your ADC!
1817
// ADS1015 ADS1115
1918
// ------- -------
2019
// ads.setGain(GAIN_TWOTHIRDS); // 2/3x gain +/- 6.144V 1 bit = 3mV 0.1875mV (default)

0 commit comments

Comments
 (0)