Skip to content

Commit 6b5d47d

Browse files
committed
style(wsen-hids): put docstring on multiple line in the example
1 parent 0db64d1 commit 6b5d47d

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

lib/wsen-hids/examples/comfort_monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Loop that reads humidity + temperature every 2s and prints a comfort indicator ("Dry", "Comfortable", "Humid") based on humidity thresholds (< 30%, 30-60%, > 60%)"""
1+
"""Loop that reads humidity + temperature every 2s and prints a comfort indicator ("Dry", "Comfortable", "Humid")
2+
based on humidity thresholds (< 30%, 30-60%, > 60%)"""
23

34
from time import sleep_ms
45

lib/wsen-hids/examples/dew_point.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
"""Compute and display the dew point temperature from humidity + temperature using the Magnus formula. Useful to understand when condensation might occur."""
1+
"""Compute and display the dew point temperature from humidity + temperature using the Magnus formula.
2+
Useful to understand when condensation might occur."""
23
from math import log
34

45
from machine import I2C

lib/wsen-hids/examples/heater_demo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
"""Show the effect of the built-in heater (enable_heater()): read humidity before, enable heater for a few seconds, read again. The heater evaporates condensation — humidity should drop. Demonstrates a feature unique to this sensor."""
1+
"""Show the effect of the built-in heater
2+
(enable_heater()): read humidity before, enable heater for a few seconds, read again.
3+
The heater evaporates condensation — humidity should drop. Demonstrates a feature unique to this sensor."""
24
from time import sleep_ms
35

46
from machine import I2C

lib/wsen-hids/examples/low_power_sampling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
"""Use power_off() between readings to minimize energy consumption. Read one-shot every 10s, print values, then power down. Show gc.mem_free() and elapsed time to illustrate battery-friendly usage."""
1+
"""Use power_off() between readings to minimize energy consumption.
2+
Read one-shot every 10s, print values, then power down.
3+
Show gc.mem_free() and elapsed time to illustrate battery-friendly usage."""
24

35
import gc
46
from time import sleep, ticks_diff, ticks_ms

0 commit comments

Comments
 (0)