summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/Alert_Window_Mode_with_Latch/Alert_Window_Mode_with_Latch.ino29
1 files changed, 15 insertions, 14 deletions
diff --git a/examples/Alert_Window_Mode_with_Latch/Alert_Window_Mode_with_Latch.ino b/examples/Alert_Window_Mode_with_Latch/Alert_Window_Mode_with_Latch.ino
index f90d6db..da30b2d 100644
--- a/examples/Alert_Window_Mode_with_Latch/Alert_Window_Mode_with_Latch.ino
+++ b/examples/Alert_Window_Mode_with_Latch/Alert_Window_Mode_with_Latch.ino
@@ -2,13 +2,14 @@
* Example sketch for the ADS1115_WE library
*
* This sketch shows how you can use the alert pin with the latch function. The
-* only difference to Alert_Window_Mode.ino is that latch is enabled (line 112)
-* and that the alert needs to be cleared (line 147). Try and see the difference.
+* only difference to Alert_Window_Mode.ino is that latch is enabled (line 113)
+* and that the alert needs to be cleared (line 148). Try and see the difference.
* As an alternative to the unlatchAlertPin function you can use getResult_V.
* Internally clearAlert just performs a read of the conversion register.
*
* Further information can be found on:
-* https://wolles-elektronikkiste.de/ads1115
+* https://wolles-elektronikkiste.de/ads1115 (German)
+* https://wolles-elektronikkiste.de/en/ads1115-a-d-converter-with-amplifier (English)
*
***************************************************************************/
@@ -59,7 +60,7 @@ void setup() {
*/
adc.setCompareChannels(ADS1115_COMP_0_GND); //uncomment if you want to change the default
- /* Set number of conversions out of limit after which the alert pin will be active
+ /* Set number of conversions out of limit after which the alert pin will assert
* - or you can disable the alert (including conversion ready alert)
*
* ADS1115_ASSERT_AFTER_1 -> after 1 conversion
@@ -90,10 +91,10 @@ void setup() {
*/
adc.setMeasureMode(ADS1115_CONTINUOUS); //comment or change if you want to change single shot
- /* Choose maximum limit or maximum and minimum alert limit (window)in Volt - alert pin will
- * be active when measured values are beyond the maximum limit or outside the window
+ /* Choose maximum limit or maximum and minimum alert limit (window) in volts - alert pin will
+ * assert when measured values are beyond the maximum limit or outside the window
* Upper limit first: setAlertLimit_V(MODE, maximum, minimum)
- * In max limit mode the minimum value is the limit where the alert pin will be deactivated
+ * In max limit mode the minimum value is the limit where the alert pin assertion will be cleared
* again (if not latched!)
*
* ADS1115_MAX_LIMIT
@@ -102,9 +103,9 @@ void setup() {
*/
adc.setAlertModeAndLimit_V(ADS1115_WINDOW, 3.0, 1.5); //uncomment if you want to change the default
- /* Enable or disable latch. If latch is enabled the alarm pin will be active until the
- * conversion register is read (getResult functions). If disabled the alarm pin will be
- * deactivated with next value within limits.
+ /* Enable or disable latch. If latch is enabled the alert pin will be active until the
+ * conversion register is read (getResult functions). If disabled the alert pin assertion
+ * will be cleared with next value within limits.
*
* ADS1115_LATCH_DISABLED (default)
* ADS1115_LATCH_ENABLED
@@ -113,16 +114,16 @@ void setup() {
/* Sets the alert pin polarity if active:
*
- * Enable or disable latch. If latch is enabled the alarm pin will be active until the
- * conversion register is read (getResult functions). If disabled the alarm pin will be
- * deactivated with next value within limits.
+ * Enable or disable latch. If latch is enabled the alert pin will assert until the
+ * conversion register is read (getResult functions). If disabled the alert pin assertion
+ * will be cleared with next value within limits.
*
* ADS1115_ACT_LOW -> active low (default)
* ADS1115_ACT_HIGH -> active high
*/
//adc.setAlertPol(ADS1115_ACT_LOW); //uncomment if you want to change the default
- /* With this function the alert pin will be active, when a conversion is ready.
+ /* With this function the alert pin will assert, when a conversion is ready.
* In order to deactivate, use the setAlertLimit_V function
*/
//adc.setAlertPinToConversionReady(); //uncomment if you want to change the default