File tree Expand file tree Collapse file tree 5 files changed +3
-8
lines changed
Expand file tree Collapse file tree 5 files changed +3
-8
lines changed Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments