Skip to content

Commit 6994ee0

Browse files
committed
remove magtag reference, update comments
1 parent d7cdb81 commit 6994ee0

File tree

1 file changed

+4
-2
lines changed
  • Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO

1 file changed

+4
-2
lines changed

Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO/code.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@
1919
from adafruit_io.adafruit_io import IO_HTTP, AdafruitIO_RequestError
2020

2121

22-
# On MagTag, enable power to NeoPixels.
23-
# Remove these two lines on boards without board.NEOPIXEL_POWER.
22+
# enable power to NeoPixels.
2423
np_power = digitalio.DigitalInOut(board.NEOPIXEL_POWER)
2524
np_power.switch_to_output(value=True)
2625

26+
# standard LED
2727
builtin_led = digitalio.DigitalInOut(board.LED)
2828
builtin_led.switch_to_output(value=True)
2929

30+
# neopixel to use for status
3031
status_pixel = neopixel.NeoPixel(
3132
board.NEOPIXEL, 1, brightness=0.1, pixel_order=neopixel.GRB, auto_write=True
3233
)
@@ -39,6 +40,7 @@
3940
# change this to match the location's pressure (hPa) at sea level
4041
bme280.sea_level_pressure = 1013.25
4142

43+
# temperature converted to F
4244
temperature = bme280.temperature * 9 / 5 + 32
4345
humidity = bme280.relative_humidity
4446
pressure = bme280.pressure

0 commit comments

Comments
 (0)