Skip to content

Commit 61c02c8

Browse files
Upgrade MicroPython to the 2.1.0 release. (#72)
https://github.com/microbit-foundation/micropython-microbit-v2/releases/tag/v2.1.0 - Fix for breaking change in the power HAL. - Fix example issue spotted during testing. This change was needed for the previous MicroPython beta update.
1 parent 670e75f commit 61c02c8

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/examples/sound_effects_user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
duration=500,
99
vol_start=100,
1010
vol_end=255,
11-
wave=audio.SoundEffect.WAVE_TRIANGLE,
11+
wave=audio.SoundEffect.WAVEFORM_TRIANGLE,
1212
fx=audio.SoundEffect.FX_VIBRATO,
1313
shape=audio.SoundEffect.SHAPE_LOG,
1414
)
15-
)
15+
)

src/microbithal_js.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ void microbit_hal_power_off(void) {
9292
// Stub, unsupported.
9393
}
9494

95-
void microbit_hal_power_deep_sleep(bool wake_on_ms, uint32_t ms) {
96-
// Stub, unsupported.
95+
bool microbit_hal_power_deep_sleep(bool wake_on_ms, uint32_t ms) {
96+
// Stub, unsupported, always claim we were interrupted.
97+
return true;
9798
}
9899

99100
void microbit_hal_pin_set_pull(int pin, int pull) {

0 commit comments

Comments
 (0)