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
**Returns:**`int` — Device ID (`WHO_AM_I` register value)
92
+
93
+
94
+
### `enable_bdu(enable=True)`
95
+
96
+
Enable or disable Block Data Update (BDU).
97
+
98
+
```python
99
+
sensor.enable_bdu(enable=True)
100
+
```
101
+
102
+
When enabled, output registers are not updated until both high and low bytes are read. Recommended to avoid reading inconsistent data.
103
+
90
104
---
91
105
92
106
# Reading Measurements
@@ -113,21 +127,27 @@ temperature = sensor.temperature()
113
127
114
128
### Measurement behavior
115
129
116
-
After initialization, the sensor operates in **one-shot mode** (ODR = 00).
130
+
After initialization, the sensor operates in **one-shot mode** (ODR = 00).
117
131
If `read()`, `humidity()`, or `temperature()` are called while the sensor is not in continuous mode, the driver **automatically triggers a one-shot conversion** to ensure fresh data is returned.
118
132
119
-
This allows simple usage:
120
-
121
133
```python
122
134
humidity, temperature = sensor.read()
135
+
```
123
136
124
-
Continuous measurements can be enabled with sensor.set_continuous().
0 commit comments