File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,33 @@ 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:
68
+
69
+ .. code :: python
70
+
71
+ sensor.mode = ' Periodic'
72
+ print (sensor.temperature)
73
+ print (sensor.relative_humidity)
74
+
75
+ You can adjust the frequency at which the sensor periodically gathers data to:
76
+ 0.5, 1, 2, 4 or 10 Hz. The following adjusts the frequency to 2 Hz:
77
+
78
+ .. code :: python
79
+
80
+ sensor.frequency = 2
81
+
82
+
83
+ The sensor is capable of storing eight results. The sensor stores these
84
+ results in an internal FILO cache.
85
+
86
+ The sensor will continue to collect data at the set interval until it is
87
+ returned to single shot data acquisition mode:
88
+
89
+ .. code :: python
90
+
91
+ sensor.mode = ' Single'
92
+
66
93
Contributing
67
94
============
68
95
You can’t perform that action at this time.
0 commit comments