Skip to content

Commit a4960df

Browse files
committed
fix examples, tested
1 parent 8df1cc5 commit a4960df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ For humidity compensated raw gas and voc index readings, we'll need a secondary
9292
humidity = bme280.relative_humidity
9393
9494
# For compensated raw gas readings
95-
compensated_raw_gas = sgp.raw(temperature = temperature, relative_humidity = humidity)
95+
compensated_raw_gas = sgp.measure_raw(temperature = temperature, relative_humidity = humidity)
96+
97+
time.sleep(1)
9698
9799
# For Compensated voc index readings
98100
voc_index = sgp.measure_index(temperature = temperature, relative_humidity = humidity)

examples/sgp40_indextest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
temperature=temperature, relative_humidity=humidity
2323
)
2424

25+
time.sleep(1)
26+
2527
# For Compensated voc index readings
2628
# It may take several minutes for the VOC index to start changing
2729
# as it calibrates the baseline readings.

0 commit comments

Comments
 (0)