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.
1 parent 7dcb937 commit 50bc0c4Copy full SHA for 50bc0c4
src/arduino/app_bricks/sound_generator/__init__.py
@@ -450,7 +450,6 @@ def __init__(
450
if output_device is None:
451
self.external_speaker = False
452
self._output_device = Speaker(sample_rate=self.SAMPLE_RATE, format="FLOAT_LE")
453
- self.start()
454
else:
455
self.external_speaker = True
456
self._output_device = output_device
src/arduino/app_bricks/sound_generator/examples/1_play_sequence.py
@@ -45,7 +45,9 @@
45
("B4", 1 / 8),
46
("A4", 1),
47
]
48
-for note, duration in fur_elise:
49
- player.play(note, duration)
50
51
-App.run()
+def user_lp():
+ for note, duration in fur_elise:
+ player.play(note, duration)
52
+
53
+App.run(user_loop=user_lp)
0 commit comments