You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following 3 functions are **NOT RECOMMENDED** by the datasheet.
57
-
Feel free to uncomment but use at your own risk. Read datasheet before use.
69
+
Following 3 functions are **NOT RECOMMENDED** by the datasheet.
70
+
Feel free to uncomment and use at your own risk.
71
+
Read datasheet before using these functions:
58
72
59
-
-**uint16_t CalibrateManual(uint16_t value)**
60
-
-**uint16_t SetSpanCalibrate(uint16_t value)**
61
-
-**uint16_t GetSpanCalibrate()**
73
+
-**uint16_t calibrateManual(uint16_t value)**
74
+
-**uint16_t setSpanCalibrate(uint16_t value)**
75
+
-**uint16_t getSpanCalibrate()**
62
76
63
77
64
78
### Digifilter
65
79
66
-
use with care, read datasheet before use
80
+
use with care, read datasheet before use.
67
81
68
82
| value | meaning |
69
83
|:-----:|:--------|
70
84
| 0 | Special, see datasheet page ... |
71
-
| 1 | fast, but can be noisy |
72
-
| 32 | default, good average |
73
-
| 255 | slow, max smoothed |
85
+
| 1 | fast, but can be noisy |
86
+
| 32 | default, good average |
87
+
| 255 | slow, max smoothed |
74
88
75
-
-**void SetDigiFilter(uint8_t value)**
76
-
-**uint8_t GetDigiFilter()**
89
+
-**void setDigiFilter(uint8_t value)**
90
+
-**uint8_t getDigiFilter()**
77
91
78
92
79
93
### Streaming MODE
80
94
81
95
Warning: Not tested ,
82
96
83
-
-**void SetOutputFields(uint16_t fields)** Sets the fields in the output stream.
84
-
-**void ClrOutputFields()** clears all the fields.
85
-
-**void GetRecentFields()** After a call to GetRecentFields() you must read the serial port yourself as the internal buffer of this Class cannot handle the possible large output. It can be over 100 bytes long lines!
86
-
87
-
The fields must be set as a bit mask, the order of the fields in the output is undetermined. So parse carefully.
88
-
89
-
| Field | Value | Notes |
90
-
|:------------------|:-------|:------|
91
-
| CZR_LIGHT | 0x2000 ||
92
-
| CZR_HUMIDITY | 0x1000 ||
93
-
| CZR_FILTLED | 0x0800 ||
94
-
| CZR_RAWLED | 0x0400 ||
95
-
| CZR_MAXLED | 0x0200 ||
96
-
| CZR_ZEROPOINT | 0x0100 ||
97
-
| CZR_RAWTEMP | 0x0080 ||
98
-
| CZR_FILTTEMP | 0x0040 ||
99
-
| CZR_FILTLEDSIGNAL | 0x0020 ||
100
-
| CZR_RAWLEDSIGNAL | 0x0010 ||
101
-
| CZR_SENSTEMP | 0x0008 ||
102
-
| CZR_FILTCO2 | 0x0004 ||
103
-
| CZR_RAWCO2 | 0x0002 ||
104
-
| CZR_NONE | 0x0001 | reset |
97
+
-**void setOutputFields(uint16_t fields)** Sets the fields in the output stream as a 16 bit mask. See table below.
98
+
-**void clearOutputFields()** clears all the fields.
99
+
-**uint16_t getOutputFields()** returns the 16 bit mask of set output fields.
100
+
-**bool inOutputFields(uint16_t field)** returns true if the field is set.
101
+
-**void getRecentFields()** After a call to getRecentFields() you must read the serial stream yourself.
102
+
The internal buffer of this Class cannot handle the possible large output. Lines can be over 100 bytes long!
103
+
104
+
The fields must be set as a bit mask, the order of the fields in the output is undetermined.
105
+
So one need to parse the output of the sensor carefully.
106
+
107
+
| Field | Value | Notes |
108
+
|:------------------|:-------|:---------|
109
+
| CZR_LIGHT | 0x2000 ||
110
+
| CZR_HUMIDITY | 0x1000 ||
111
+
| CZR_FILTLED | 0x0800 ||
112
+
| CZR_RAWLED | 0x0400 ||
113
+
| CZR_MAXLED | 0x0200 ||
114
+
| CZR_ZEROPOINT | 0x0100 ||
115
+
| CZR_RAWTEMP | 0x0080 ||
116
+
| CZR_FILTTEMP | 0x0040 ||
117
+
| CZR_FILTLEDSIGNAL | 0x0020 ||
118
+
| CZR_RAWLEDSIGNAL | 0x0010 ||
119
+
| CZR_SENSTEMP | 0x0008 ||
120
+
| CZR_FILTCO2 | 0x0004 ||
121
+
| CZR_RAWCO2 | 0x0002 ||
122
+
| CZR_NONE | 0x0001 | reset |
105
123
| CZR_HTC | 0x1082 | shortcut |
106
124
| CZR_ALL | 0x3FFE | debug |
107
125
@@ -111,32 +129,64 @@ The fields must be set as a bit mask, the order of the fields in the output is u
111
129
Read datasheet Page 11-12 about the addresses and their meaning.
-**void GetVersionSerial()** requests version over serial. The user should read (and parse) the serial output as it can become large. Also the user must reset the operating mode either to **CZR_POLLING** or **CZR_STREAMING**
139
-
-**void GetConfiguration()** requests configuration over serial. The user should read (and parse) the serial output as it can become large. Also the user must reset the operating mode either to **CZR_POLLING** or **CZR_STREAMING**
132
+
In 0.3.0 the EEPROM function have been replaced by specific accessor
0 commit comments