Skip to content

Commit b9d2f62

Browse files
brentrubrentru
brentru
authored and
brentru
committed
update environmental_monitor.py sketch to reflect Adafruit_CircuitPython_SGP30 lib
1 parent 8404f9a commit b9d2f62

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/basics/environmental_monitor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import board
3434
import busio
3535

36-
# import sensor libraries
36+
# import CircuitPython sensor libraries
3737
import adafruit_sgp30
3838
import adafruit_veml6070
3939
import adafruit_bme280
@@ -91,12 +91,11 @@ def sample_VEML():
9191
uv_raw = uv.read
9292
return uv_raw
9393

94-
9594
while True:
9695
print('Reading sensors...')
9796
# Read SGP30.
98-
eCO2_data = sgp30.co2eq
99-
tvoc_data = sgp30.tvoc
97+
eCO2_data = sgp30.eCO2
98+
tvoc_data = sgp30.TVOC
10099

101100
# Read VEML6070.
102101
uv_data = sample_VEML()

0 commit comments

Comments
 (0)