Skip to content

Commit

Permalink
Merge pull request #88 from adafruit/update-env-sensor-example
Browse files Browse the repository at this point in the history
update environmental_monitor.py sketch
  • Loading branch information
brentru committed Feb 21, 2019
2 parents 8404f9a + 70e010c commit 608105d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Adafruit_IO/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.1.1"
__version__ = "2.1.2"
7 changes: 3 additions & 4 deletions examples/basics/environmental_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import board
import busio

# import sensor libraries
# import CircuitPython sensor libraries
import adafruit_sgp30
import adafruit_veml6070
import adafruit_bme280
Expand Down Expand Up @@ -91,12 +91,11 @@ def sample_VEML():
uv_raw = uv.read
return uv_raw


while True:
print('Reading sensors...')
# Read SGP30.
eCO2_data = sgp30.co2eq
tvoc_data = sgp30.tvoc
eCO2_data = sgp30.eCO2
tvoc_data = sgp30.TVOC

# Read VEML6070.
uv_data = sample_VEML()
Expand Down

0 comments on commit 608105d

Please sign in to comment.