Closed microbit-carlos closed 2 years ago
Tested these two and they work fine now:
from microbit import *
audio.play(audio.SoundEffect())
display.show("A")
from microbit import *
audio.play(Sound.HAPPY)
display.show("A")
The commit reverted was to solve a issue with the uBit.audio.soundExpressions.play()
function returning before the sound finished playing (15ish ms), so it should be safe to revert:
The CODAL patch fixes https://github.com/microbit-foundation/micropython-microbit-v2/issues/124.