Skip to content

Commit b227092

Browse files
MicroPython: Update to the latest 2.0-44a75bb.
1 parent 75a641b commit b227092

File tree

3 files changed

+26732
-26285
lines changed

3 files changed

+26732
-26285
lines changed

editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
// VERSION INFORMATION
8181
EDITOR_VERSION = "2.1.0-beta.6";
8282
UPY_1_VERSION = "1.0.1";
83-
UPY_2_VERSION = "2.0-3e09245a46";
83+
UPY_2_VERSION = "2.0-44a75bb";
8484
</script>
8585
<script id="files-template" type="x-tmpl-mustache">
8686
<div id="files-modal" tabindex="-1" role="dialog" aria-label="load/save modal" aria-modal="true" class="modal-div">

js/micropythonapi.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,13 @@ var microPythonApi = (function () {
6565

6666
var extraModules = {
6767
"microbit": {
68-
"microphone": ["LOUD", "QUIET", "current_sound", "get_sounds", "is_sound", "sound_level", "was_sound"],
68+
"microphone": ["current_event", "get_events", "is_event", "set_threshold", "sound_level", "was_event"],
6969
"pin_logo": ["is_touched"],
70-
"pin_speaker": ["get_analog_period_microseconds", "get_mode", "get_pull", "read_digital", "set_analog_period", "set_analog_period_microseconds", "set_pull", "write_analog", "write_digital"],
71-
"pin_audio": ["get_analog_period_microseconds", "get_mode", "get_pull", "read_digital", "set_analog_period", "set_analog_period_microseconds", "set_pull", "write_analog", "write_digital"],
72-
"set_volume": ""
70+
"pin_speaker": ["disable", "enable", "get_analog_period_microseconds", "set_analog_period", "set_analog_period_microseconds", "write_analog", "write_digital"],
71+
"set_volume": "",
72+
"audio" : ["play", "AudioFrame", "stop", "is_playing"],
73+
"Sound": ["GIGGLE", "HAPPY", "HELLO", "MYSTERIOUS", "SAD", "SLIDE", "SOARING", "SPRING", "TWINKLE", "YAWN"],
74+
"SoundEvent": ["LOUD", "QUIET"]
7375
},
7476
"audio" : ["play", "AudioFrame", "stop", "is_playing"]
7577
};

0 commit comments

Comments
 (0)