Skip to content

Commit 730be3a

Browse files
committed
Adjusted measuring interval to 60 s in examples.
1 parent f7f3456 commit 730be3a

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

examples/alarm-notification/alarm-notification.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
* communication issues.
1010
*/
1111
#define I2C_FREQ_HZ 400000
12-
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10
12+
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10 /* demo-mode value; not recommended for long-term measurements */
13+
// #define PERIODIC_MEAS_INTERVAL_IN_SECONDS 60 /* specification value for stable operation (uncomment for long-time-measurements) */
1314
#define ALARM_PPM_THRESHOLD 1200
1415

1516
uint8_t interrupt_pin = 9; /* For XMC2Go. Change it for your hardware setup */

examples/continuous-mode/continuous-mode.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
* communication issues.
1010
*/
1111
#define I2C_FREQ_HZ 400000
12-
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10
12+
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10 /* demo-mode value; not recommended for long-term measurements */
13+
// #define PERIODIC_MEAS_INTERVAL_IN_SECONDS 60 /* specification value for stable operation (uncomment for long-time-measurements) */
1314
#define PRESSURE_REFERENCE 900
1415

1516
/*
@@ -51,7 +52,7 @@ void setup()
5152

5253
/*
5354
* Configure the sensor to measureme periodically
54-
* every 10 seconds
55+
* every 60 seconds
5556
*/
5657
err = cotwo.startMeasure(PERIODIC_MEAS_INTERVAL_IN_SECONDS);
5758
if(XENSIV_PASCO2_OK != err)

examples/early-notification/early-notification.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ uint8_t interruptPin = 9; /* For XMC2Go. Change it for your hardware setup
4646
* communication issues.
4747
*/
4848
#define I2C_FREQ_HZ 400000
49-
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10
49+
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10 /* demo-mode value; not recommended for long-term measurements */
50+
// #define PERIODIC_MEAS_INTERVAL_IN_SECONDS 60 /* specification value for stable operation (uncomment for long-time-measurements) */
5051
#define EARLY_NOTIFICATION_ENABLED true
5152

5253
/*

examples/forced-compensation/forced-compensation.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
* communication issues.
1010
*/
1111
#define I2C_FREQ_HZ 400000
12-
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10
12+
#define PERIODIC_MEAS_INTERVAL_IN_SECONDS 10 /* demo-mode value; not recommended for long-term measurements */
13+
// #define PERIODIC_MEAS_INTERVAL_IN_SECONDS 60 /* specification value for stable operation (uncomment for long-time-measurements) */
1314
#define FORCED_COMPENSATION_CO2_REFERENCE 400
1415
#define PRESSURE_REFERENCE 900
1516

examples/single-shot-mode/single-shot-mode.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* communication issues.
1010
*/
1111
#define I2C_FREQ_HZ 400000
12+
#define MEAS_INTERVAL_IN_SECONDS 10 /* demo-mode value; not recommended for long-term measurements */
13+
// #define MEAS_INTERVAL_IN_SECONDS 60 /* specification value for stable operation (uncomment for long-time-measurements) */
1214

1315
/**
1416
* Create CO2 object. Unless otherwise specified,
@@ -53,7 +55,7 @@ void loop()
5355
}
5456

5557
/* Wait for the value to be ready. */
56-
delay(5000);
58+
delay(MEAS_INTERVAL_IN_SECONDS*1000);
5759

5860
/**
5961
* getCO2() is called until the value is

0 commit comments

Comments
 (0)