v2.1.0
microphone.sound_level()
now uses a better SPL algorithm with better range detection (#122)- Setting the
audio.SoundEffect
constructor arguments and/or attributes to out of range values now throws an exception (#120, #129) audio.SoundEffect.fx
no longer returnsNone
instead of0
(the constantFX_NONE
value) (#130)- Update
microbit.scale()
to set the output type depending on theto
parameter type (#121) - Fix issue where
power.deep_sleep()
with ams
argument would block until the time elapsed when it was woken up via other wake up sources (#119, #128) power.deep_sleep()
parameterrun_every
updated to configure ifmicrobit.run_every
functions will continue to run while the board sleeps (#118)- Before the micro:bit would wake up at the next scheduled function event, and it was up to the user code to go back to sleep
- Now it will automatically go back to sleep until the next scheduled event, or configured wake up source
- Add UART as a wake up source from Deep Sleep (#127)
- Fix issue where trying to go to Deep Sleep without wake up sources didn't work (#126)
- Update CODAL from v0.2.42-hotfix.1 to v0.2.43 tag
- Changes to codal-microbit-v2:
- deepSleep() with no wake targets will now actually deep sleep.
- Serial ports can now be used to wake the board from deep sleep.
- New configuration flag MICROBIT_USB_SERIAL_WAKE can now be set to configure the board to wake on serial input.
- Changes to codal-core:
- Fixed spurious mic activation due to overlapping device IDs between CodalComponent and MicroBitCompat.
- Changes to codal-microbit-v2:
For a full list of commits since the last release: v2.1.0-beta.3...v2.1.0