Skip to content

Commit 52df18e

Browse files
committed
stellar: lint BME280/68x examples
1 parent 1d1b521 commit 52df18e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

micropython/examples/stellar_unicorn/thermometer_bme280.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@
123123
graphics.text(f"{humidity:.0f}%", 1, 5, scale=1)
124124

125125
if mode == "pressure":
126-
if pressure/100 < 1000:
127-
graphics.text(f"{pressure/100:.0f} hPa", 1, 0, WIDTH, scale=1)
126+
if pressure / 100 < 1000:
127+
graphics.text(f"{pressure / 100:.0f} hPa", 1, 0, WIDTH, scale=1)
128128
else:
129-
pressure_string = str(pressure/100)
129+
pressure_string = str(pressure / 100)
130130
graphics.text(f"{pressure_string[0]}.{pressure_string[1]}k hPa", 0, 0, WIDTH, scale=1)
131131

132132
# time to update the display

micropython/examples/stellar_unicorn/thermometer_bme68x.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@
123123
graphics.text(f"{humidity:.0f}%", 1, 5, scale=1)
124124

125125
if mode == "pressure":
126-
if pressure/100 < 1000:
127-
graphics.text(f"{pressure/100:.0f} hPa", 1, 0, WIDTH, scale=1)
126+
if pressure / 100 < 1000:
127+
graphics.text(f"{pressure / 100:.0f} hPa", 1, 0, WIDTH, scale=1)
128128
else:
129-
pressure_string = str(pressure/100)
129+
pressure_string = str(pressure / 100)
130130
graphics.text(f"{pressure_string[0]}.{pressure_string[1]}k hPa", 0, 0, WIDTH, scale=1)
131131

132132
# time to update the display

0 commit comments

Comments
 (0)