Skip to content

update environmental_monitor.py sketch #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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