@@ -63,14 +63,12 @@ And then you can start measuring the temperature and humidity:
63
63
print (sensor.temperature)
64
64
print (sensor.relative_humidity)
65
65
66
- You can instruct the sensor to start periodically measuring the temperature
67
- and humidity at a set interval and retrieve the stored measurements :
66
+ You can instruct the sensor to periodically measure the temperature and
67
+ humidity, storing the result in its internal cache :
68
68
69
69
.. code :: python
70
70
71
71
sensor.mode = ' Periodic'
72
- print (sensor.temperature)
73
- print (sensor.relative_humidity)
74
72
75
73
You can adjust the frequency at which the sensor periodically gathers data to:
76
74
0.5, 1, 2, 4 or 10 Hz. The following adjusts the frequency to 2 Hz:
@@ -79,9 +77,16 @@ You can adjust the frequency at which the sensor periodically gathers data to:
79
77
80
78
sensor.frequency = 2
81
79
82
-
83
80
The sensor is capable of storing eight results. The sensor stores these
84
- results in an internal FILO cache.
81
+ results in an internal FILO cache. Retrieving these results is simlilar to
82
+ taking a measurement. The sensor clears its cache once the stored data is read.
83
+ The sensor always returns eight data points. The list of results is backfilled
84
+ with the maximum output values of 130.0 ºC and 100.01831417975366 % RH:
85
+
86
+ .. code :: python
87
+
88
+ print (sensor.temperature)
89
+ print (sensor.relative_humidity)
85
90
86
91
The sensor will continue to collect data at the set interval until it is
87
92
returned to single shot data acquisition mode:
0 commit comments