Skip to content

Commit d7a2da1

Browse files
committed
Move delay in Example 1
Need to wait 1 integration time period for first measurement to become valid
1 parent 3cdb8e3 commit d7a2da1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/qwiic_veml6030_ex1_basic_readings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def runExample():
5454

5555
# Loop forever
5656
while True:
57+
# Give some delay between prints
58+
time.sleep(1)
59+
5760
# Get light measured by sensor in Lux
5861
ambient_light = light_sensor.read_light()
5962

6063
# Print measurement
6164
print("Lux:\t%.3f" % ambient_light)
62-
63-
# Give some delay between prints
64-
time.sleep(1)
6565

6666
if __name__ == '__main__':
6767
try:

0 commit comments

Comments
 (0)