Skip to content

Commit 6d619c7

Browse files
MicroPython: Update to latest version 2.0-3e09245a46.
Updated the API as well with the new inclusions.
1 parent a3b2926 commit 6d619c7

File tree

3 files changed

+25779
-27468
lines changed

3 files changed

+25779
-27468
lines changed

editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<script type="application/javascript">
8080
// VERSION INFORMATION
8181
EDITOR_VERSION = "2.1.0-beta.5";
82-
UPY_VERSION = "1.0.1/2.0-0dfb5d801a";
82+
UPY_VERSION = "1.0.1/2.0-3e09245a46";
8383
</script>
8484
<script id="files-template" type="x-tmpl-mustache">
8585
<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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ var microPythonApi = (function () {
6767
"microbit": {
6868
"microphone": ["LOUD", "QUIET", "current_sound", "get_sounds", "is_sound", "sound_level", "was_sound"],
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-
}
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": ""
73+
},
74+
"audio" : ["play", "AudioFrame", "stop", "is_playing"]
7275
};
7376

7477
/**
@@ -107,6 +110,7 @@ var microPythonApi = (function () {
107110
* available modules.
108111
*/
109112
var getFullMicroPythonApi = function() {
113+
// TODO: This does not seem to expand arrays shared by both objects
110114
var finalObj = $.extend(true, {}, uPyBaseApi, extraModules);
111115
return flattenApi(finalObj);
112116
};

0 commit comments

Comments
 (0)