Skip to content

Commit b580c30

Browse files
committed
going for v0.3.0
1 parent ff0f9a6 commit b580c30

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

samples/melody/main.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ def wave_prog():
3535
def HWPlayToneBlocked(freq: int, duration: int):
3636
halfWaveNumCycles = round(50000.0 / freq)
3737
waveCount = round(duration * freq / 1000.0)
38-
print(". freq", freq)
39-
print(". duration", duration)
40-
print(". halfWaveNumCycles", halfWaveNumCycles)
41-
print(". waveCount", waveCount)
38+
#print(". freq", freq)
39+
#print(". duration", duration)
40+
#print(". halfWaveNumCycles", halfWaveNumCycles)
41+
#print(". waveCount", waveCount)
4242
sm.active(1)
43-
start_ms = time.ticks_ms()
43+
#start_ms = time.ticks_ms()
4444
sm.put(waveCount)
4545
sm.put(halfWaveNumCycles) # 2 * (x / 10) == blink time
4646
res = sm.get()
47-
taken_ms = time.ticks_ms() - start_ms
48-
print(f"= got result {res} in {taken_ms:.2} ms")
47+
#taken_ms = time.ticks_ms() - start_ms
48+
#print(f"= got result {res} in {taken_ms:.2} ms")
4949
sm.active(0)
5050
except:
5151
print("*****")
@@ -65,6 +65,7 @@ def HWPlayToneBlocked(freq: int, duration: int):
6565
HEIGHT = 80
6666
BORDER = 1
6767

68+
6869
# create DumbDisplay
6970
if DumbDisplay.runningWithMicropython():
7071
# connect using WIFI:

0 commit comments

Comments
 (0)