We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1511bd8 commit 69e2aaeCopy full SHA for 69e2aae
samples/melody/main.py
@@ -18,7 +18,7 @@
18
)
19
def wave_prog():
20
pull(block)
21
- mov(x, osr) # waveCount
+ mov(x, osr) # waveCount
22
23
label("loop")
24
mov(y, osr) # halfWaveNumCycles
@@ -39,7 +39,7 @@ def HWPlayTone(freq: int, duration: int):
39
halfWaveNumCycles = round((100000.0 / 2) / freq) # 2 is the number of cycles per half wave
40
waveCount = round(duration * freq / 1000.0)
41
sm.put(waveCount)
42
- sm.put(halfWaveNumCycles) # 2 * (x / 10) == blink time
+ sm.put(halfWaveNumCycles)
43
except:
44
print("*****")
45
print("* No HWPlayTone")
0 commit comments