Skip to content

Commit 2431ff0

Browse files
authored
Merge pull request #157 from kattni/pulse-plot
update to variable name and comment
2 parents 77bbaf2 + 2f74cde commit 2431ff0

File tree

1 file changed

+4
-4
lines changed
  • Sensor_Plotting_With_Mu_CircuitPython

1 file changed

+4
-4
lines changed

Sensor_Plotting_With_Mu_CircuitPython/pulse.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# How many light readings per sample
1313
NUM_OVERSAMPLE = 10
1414
# How many samples we take to calculate 'average'
15-
NUMSAMPLES = 20
16-
samples = [0] * NUMSAMPLES
15+
NUM_SAMPLES = 20
16+
samples = [0] * NUM_SAMPLES
1717

1818
while True:
19-
for i in range(NUMSAMPLES):
20-
# Take 'NUM_OVERSAMPLE' # readings really fast
19+
for i in range(NUM_SAMPLES):
20+
# Take NUM_OVERSAMPLE number of readings really fast
2121
oversample = 0
2222
for s in range(NUM_OVERSAMPLE):
2323
oversample += float(light.value)

0 commit comments

Comments
 (0)