microbit-foundation / micropython-microbit-v2

Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream
MIT License
44 stars 25 forks source link

Updates codal-microbit-v2 to v0.2.42-hotfix.1 and sets the release to beta.3 #125

Closed microbit-carlos closed 2 years ago

microbit-carlos commented 2 years ago

The CODAL patch fixes https://github.com/microbit-foundation/micropython-microbit-v2/issues/124.

microbit-carlos commented 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: