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
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,7 +250,7 @@ i2c = machine.I2C(1)
250
250
apds = APDS9960(i2c)
251
251
252
252
apds.enable_light_sensor()
253
-
light = apds.read_ambient_light()
253
+
light = apds.ambient_light()
254
254
255
255
```
256
256
@@ -476,6 +476,7 @@ lib/<component>/
476
476
-**Reset methods**: `reset()` for hardware reset (pin toggle), `soft_reset()` for software reset (register write), `reboot()` for memory reboot (reload trimming).
477
477
-**Power methods**: `power_on()` / `power_off()`. All drivers must implement both.
478
478
-**Status methods**: `_status()` returns the raw status register as an int (private), `data_ready()` returns True when all channels have new data, `<measurement>_ready()` for per-channel readiness (e.g. `temperature_ready()`, `pressure_ready()`).
479
+
-**Measurement methods**: bare noun for the main unit (`temperature()`, `humidity()`, `pressure()`), `read()` for combined reading returning a tuple, `<measurement>_raw()` for raw register values. No `read_` prefix on individual measurements.
0 commit comments