Skip to content

Commit 5b3993c

Browse files
Update to audio-recording branch of MicroPython
We're doing this as a preview of the forthcoming beta. Stubs are a copy for now - we'll update them shortly. No sim changes yet.
1 parent 88a684a commit 5b3993c

12 files changed

+29079
-2
lines changed

src/micropython/beta/microbit-micropython-v2.hex

+28,553
Large diffs are not rendered by default.

src/micropython/beta/typeshed.ca.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.de.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.en.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.es-es.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.fr.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.ja.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.ko.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.nl.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.zh-cn.json

+51
Large diffs are not rendered by default.

src/micropython/beta/typeshed.zh-tw.json

+51
Large diffs are not rendered by default.

src/micropython/micropython.ts

+16-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { IntelHexWithId } from "@microbit/microbit-fs";
77
import { microbitBoardId } from "@microbit/microbit-universal-hex";
88
import microPythonV1HexUrl from "./microbit-micropython-v1.hex";
99
import microPythonV2HexUrl from "./main/microbit-micropython-v2.hex";
10+
import microPythonV2BetaHexUrl from "./beta/microbit-micropython-v2.hex";
11+
import { stage } from "../environment";
1012

1113
const v2Main = {
1214
name: "MicroPython (micro:bit V2)",
@@ -16,6 +18,18 @@ const v2Main = {
1618
web: "https://github.com/microbit-foundation/micropython-microbit-v2/releases/tag/v2.1.2",
1719
};
1820

21+
// This isn't the beta yet - we're using a branch build temporarily.
22+
const v2Beta = {
23+
name: "MicroPython (micro:bit V2)",
24+
url: microPythonV2BetaHexUrl,
25+
boardId: microbitBoardId.V2,
26+
version: "87f726cec9feeffcaee6e953d85fea14b28c404f",
27+
// It's not the beta yet!
28+
web: "https://github.com/microbit-foundation/micropython-microbit-v2/pull/163",
29+
};
30+
31+
const isBetaMicroPython = stage !== "PRODUCTION";
32+
1933
export const microPythonConfig = {
2034
versions: [
2135
{
@@ -25,11 +39,11 @@ export const microPythonConfig = {
2539
version: "1.1.1",
2640
web: "https://github.com/bbcmicrobit/micropython/releases/tag/v1.1.1",
2741
},
28-
v2Main,
42+
isBetaMicroPython ? v2Beta : v2Main,
2943
],
3044
// We've previously used this field to allow flags to affect
3145
// the stubs used and might do so again.
32-
stubs: "main",
46+
stubs: isBetaMicroPython ? "beta" : "main",
3347
};
3448

3549
const fetchValidText = async (input: RequestInfo) => {

0 commit comments

Comments
 (0)