From 6994ee09d3844d91e2c7f67dd4cad7bd5432e16e Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 16 Jun 2025 09:07:06 -0500 Subject: [PATCH] remove magtag reference, update comments --- .../CircuitPython_BME280_DeepSleep_AdafruitIO/code.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO/code.py b/Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO/code.py index 7c702b74a..ffa8a970b 100644 --- a/Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO/code.py +++ b/Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO/code.py @@ -19,14 +19,15 @@ import adafruit_requests from adafruit_io.adafruit_io import IO_HTTP, AdafruitIO_RequestError -# On MagTag, enable power to NeoPixels. -# Remove these two lines on boards without board.NEOPIXEL_POWER. +# enable power to NeoPixels. np_power = digitalio.DigitalInOut(board.NEOPIXEL_POWER) np_power.switch_to_output(value=True) +# standard LED builtin_led = digitalio.DigitalInOut(board.LED) builtin_led.switch_to_output(value=True) +# neopixel to use for status status_pixel = neopixel.NeoPixel( board.NEOPIXEL, 1, brightness=0.1, pixel_order=neopixel.GRB, auto_write=True ) @@ -39,6 +40,7 @@ print("Found BME280") # change this to match the location's pressure (hPa) at sea level bme280.sea_level_pressure = 1013.25 +# temperature converted to F temperature = bme280.temperature * 9 / 5 + 32 humidity = bme280.relative_humidity pressure = bme280.pressure