File tree 5 files changed +12
-6
lines changed 5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 9
9
* communication issues.
10
10
*/
11
11
#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) */
13
14
#define ALARM_PPM_THRESHOLD 1200
14
15
15
16
uint8_t interrupt_pin = 9 ; /* For XMC2Go. Change it for your hardware setup */
Original file line number Diff line number Diff line change 9
9
* communication issues.
10
10
*/
11
11
#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) */
13
14
#define PRESSURE_REFERENCE 900
14
15
15
16
/*
@@ -51,7 +52,7 @@ void setup()
51
52
52
53
/*
53
54
* Configure the sensor to measureme periodically
54
- * every 10 seconds
55
+ * every 60 seconds
55
56
*/
56
57
err = cotwo.startMeasure (PERIODIC_MEAS_INTERVAL_IN_SECONDS);
57
58
if (XENSIV_PASCO2_OK != err)
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ uint8_t interruptPin = 9; /* For XMC2Go. Change it for your hardware setup
46
46
* communication issues.
47
47
*/
48
48
#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) */
50
51
#define EARLY_NOTIFICATION_ENABLED true
51
52
52
53
/*
Original file line number Diff line number Diff line change 9
9
* communication issues.
10
10
*/
11
11
#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) */
13
14
#define FORCED_COMPENSATION_CO2_REFERENCE 400
14
15
#define PRESSURE_REFERENCE 900
15
16
Original file line number Diff line number Diff line change 9
9
* communication issues.
10
10
*/
11
11
#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) */
12
14
13
15
/* *
14
16
* Create CO2 object. Unless otherwise specified,
@@ -53,7 +55,7 @@ void loop()
53
55
}
54
56
55
57
/* Wait for the value to be ready. */
56
- delay (5000 );
58
+ delay (MEAS_INTERVAL_IN_SECONDS* 1000 );
57
59
58
60
/* *
59
61
* getCO2() is called until the value is
You can’t perform that action at this time.
0 commit comments