Commit 523ec02
committed
codal_port/modmicrobit: Put audio module as entry in microbit module.
On micro:bit v2 the audio functionality is "built in", similar to the
display functionality. And now the following is possible and nicely
consistent:
from microbit import *
display.show(Image.HAPPY)
audio.play(Sound.HAPPY)
The "music" and "speech" modules are separate modules because they
provide functionality on top of the base audio functionality.1 parent 4971558 commit 523ec02
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments