summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang (Wolle) Ewald <wolfgang.ewald@wolles-elektronikkiste.de>2021-01-06 15:46:15 +0100
committerGitHub <noreply@github.com>2021-01-06 15:46:15 +0100
commit44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b (patch)
treec44dfecad893f946a5816d84c38a20fb2d9df42f
parentUpdate Alert_Window_Mode.ino (diff)
downloadADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.tar
ADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.tar.gz
ADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.tar.bz2
ADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.tar.lz
ADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.tar.xz
ADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.tar.zst
ADS1115_WE-44eb4e1b4bb07c23ebfb7008a1f18088dd60e46b.zip
-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