Skip to content

Commit 69e2aae

Browse files
committed
going for v0.3.0
1 parent 1511bd8 commit 69e2aae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/melody/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919
def wave_prog():
2020
pull(block)
21-
mov(x, osr) # waveCount
21+
mov(x, osr) # waveCount
2222
pull(block)
2323
label("loop")
2424
mov(y, osr) # halfWaveNumCycles
@@ -39,7 +39,7 @@ def HWPlayTone(freq: int, duration: int):
3939
halfWaveNumCycles = round((100000.0 / 2) / freq) # 2 is the number of cycles per half wave
4040
waveCount = round(duration * freq / 1000.0)
4141
sm.put(waveCount)
42-
sm.put(halfWaveNumCycles) # 2 * (x / 10) == blink time
42+
sm.put(halfWaveNumCycles)
4343
except:
4444
print("*****")
4545
print("* No HWPlayTone")

0 commit comments

Comments
 (0)