We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77bbaf2 + 2f74cde commit 2431ff0Copy full SHA for 2431ff0
Sensor_Plotting_With_Mu_CircuitPython/pulse.py
@@ -12,12 +12,12 @@
12
# How many light readings per sample
13
NUM_OVERSAMPLE = 10
14
# How many samples we take to calculate 'average'
15
-NUMSAMPLES = 20
16
-samples = [0] * NUMSAMPLES
+NUM_SAMPLES = 20
+samples = [0] * NUM_SAMPLES
17
18
while True:
19
- for i in range(NUMSAMPLES):
20
- # Take 'NUM_OVERSAMPLE' # readings really fast
+ for i in range(NUM_SAMPLES):
+ # Take NUM_OVERSAMPLE number of readings really fast
21
oversample = 0
22
for s in range(NUM_OVERSAMPLE):
23
oversample += float(light.value)
0 commit comments