Skip to content

Commit dfe23ba

Browse files
committed
Examples: Fix linter errors for wsen-pads.
1 parent d670ff6 commit dfe23ba

5 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/wsen-pads/examples/altitude_calibration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from machine import I2C
21
from time import sleep
32

3+
from machine import I2C
44
from wsen_pads import WSEN_PADS
55

66
# Set your known altitude (in meters) for calibration

lib/wsen-pads/examples/floor_detector.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@
4545
floor_change = round(altitude_diff / METERS_PER_FLOOR)
4646

4747
print("Avg Pressure:", avg_pressure, "hPa Altitude Diff:", altitude_diff, "m Floor Change:", floor_change)
48-

lib/wsen-pads/examples/pressure_trend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Read pressure every 10s, keep the last 10 values in a list, print whether pressure is rising, falling, or stable (useful for simple weather prediction)"""
22

33
from time import sleep
4+
45
from machine import I2C
56
from wsen_pads import WSEN_PADS
67
from wsen_pads.const import ODR_10_HZ

lib/wsen-pads/examples/temp_pressure_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
22
Read temperature and pressure, format a nice display with units and a simple bar graph using # characters to visualize pressure (e.g. 1013.2 hPa [##########-----])
33
"""
4-
from machine import I2C
54
from time import sleep
65

6+
from machine import I2C
77
from wsen_pads import WSEN_PADS
88

99
TEMP_MIN = 15.0

lib/wsen-pads/examples/treshold_alert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Monitor pressure continuously and print an alert when pressure drops below a configurable threshold (e.g. storm detection)."""
22

33
from time import sleep
4+
45
from machine import I2C
56
from wsen_pads import WSEN_PADS
67
from wsen_pads.const import ODR_10_HZ

0 commit comments

Comments
 (0)