File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
5050except :
5151 print ("*****" )
@@ -65,6 +65,7 @@ def HWPlayToneBlocked(freq: int, duration: int):
6565HEIGHT = 80
6666BORDER = 1
6767
68+
6869# create DumbDisplay
6970if DumbDisplay .runningWithMicropython ():
7071 # connect using WIFI:
You can’t perform that action at this time.
0 commit comments