diff --git a/micropython/examples/stellar_unicorn/thermometer_bme280.py b/micropython/examples/stellar_unicorn/thermometer_bme280.py index bcbd22ab..f4137c4e 100644 --- a/micropython/examples/stellar_unicorn/thermometer_bme280.py +++ b/micropython/examples/stellar_unicorn/thermometer_bme280.py @@ -123,10 +123,10 @@ while True: graphics.text(f"{humidity:.0f}%", 1, 5, scale=1) if mode == "pressure": - if pressure/100 < 1000: - graphics.text(f"{pressure/100:.0f} hPa", 1, 0, WIDTH, scale=1) + if pressure / 100 < 1000: + graphics.text(f"{pressure / 100:.0f} hPa", 1, 0, WIDTH, scale=1) else: - pressure_string = str(pressure/100) + pressure_string = str(pressure / 100) graphics.text(f"{pressure_string[0]}.{pressure_string[1]}k hPa", 0, 0, WIDTH, scale=1) # time to update the display diff --git a/micropython/examples/stellar_unicorn/thermometer_bme68x.py b/micropython/examples/stellar_unicorn/thermometer_bme68x.py index d5f98bf4..f01045c2 100644 --- a/micropython/examples/stellar_unicorn/thermometer_bme68x.py +++ b/micropython/examples/stellar_unicorn/thermometer_bme68x.py @@ -123,10 +123,10 @@ while True: graphics.text(f"{humidity:.0f}%", 1, 5, scale=1) if mode == "pressure": - if pressure/100 < 1000: - graphics.text(f"{pressure/100:.0f} hPa", 1, 0, WIDTH, scale=1) + if pressure / 100 < 1000: + graphics.text(f"{pressure / 100:.0f} hPa", 1, 0, WIDTH, scale=1) else: - pressure_string = str(pressure/100) + pressure_string = str(pressure / 100) graphics.text(f"{pressure_string[0]}.{pressure_string[1]}k hPa", 0, 0, WIDTH, scale=1) # time to update the display