Skip to content

Commit a9c0675

Browse files
committed
Single Measurement Test Update
1 parent 898cf6f commit a9c0675

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/tmp117_single_measurement_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
99
tmp117 = adafruit_tmp117.TMP117(i2c)
1010

11+
# Values here for the average_measurements
12+
Average_Measure = {1: "AVERAGE_1X", 2: "AVERAGE_8X", 3: "AVERAGE_32X", 4: "AVERAGE_64X"}
13+
1114
# uncomment different options below to see how it affects the reported temperature
1215
# and measurement time
1316

@@ -18,7 +21,7 @@
1821

1922
print(
2023
"Number of averaged samples per measurement:",
21-
tmp117.averaged_measurements,
24+
Average_Measure[tmp117.averaged_measurements],
2225
)
2326

2427
while True:

0 commit comments

Comments
 (0)