pxt-microbit 5.1.2 → 5.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/editor.js +11 -0
- package/built/sim-strings.json +1 -17
- package/built/sim.js +1 -1
- package/built/target-strings.json +1 -57
- package/built/target.js +1 -44155
- package/built/target.json +1 -44155
- package/built/targetlight.json +1 -408
- package/built/theme.json +1 -2311
- package/built/web/blockly.css +1 -1
- package/built/web/react-common-authcode.css +4 -6777
- package/built/web/react-common-multiplayer.css +13 -0
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlblockly.css +1 -1
- package/built/web/rtlreact-common-authcode.css +13 -0
- package/built/web/rtlreact-common-multiplayer.css +13 -0
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +2 -2
- package/built/web/semantic.css +2 -2
- package/docs/device/v2.md +1 -1
- package/docs/extensions.md +40 -0
- package/docs/microcode.md +27 -0
- package/docs/projects/SUMMARY.md +6 -0
- package/docs/projects/electric-guitar/code.md +42 -0
- package/docs/projects/electric-guitar/make.md +40 -0
- package/docs/projects/electric-guitar.md +27 -0
- package/docs/projects/hot-potato.md +1 -1
- package/docs/projects/jonnys-bird.md +110 -0
- package/docs/projects/music.md +10 -0
- package/docs/projects/red-light-green-light.md +1 -1
- package/docs/projects/timing-gates.md +4 -4
- package/docs/projects/turtle-square.md +2 -2
- package/docs/projects/watch/timer.md +1 -1
- package/docs/projects.md +6 -0
- package/docs/reference/music/beat.md +1 -7
- package/docs/reference/music/change-tempo-by.md +5 -3
- package/docs/reference/music/play-tone.md +28 -15
- package/docs/reference/music/rest.md +28 -10
- package/docs/reference/music/ring-tone.md +7 -6
- package/docs/reference/music/set-tempo.md +7 -3
- package/docs/translate.md +53 -22
- package/docs/windows-app.md +3 -3
- package/package.json +2 -2
- package/pxtarget.json +34 -4
- package/targetconfig.json +16 -3
package/built/targetlight.json
CHANGED
|
@@ -1,408 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "microbit",
|
|
3
|
-
"nickname": "microbit",
|
|
4
|
-
"name": "makecode.microbit.org",
|
|
5
|
-
"title": "Microsoft MakeCode for micro:bit",
|
|
6
|
-
"description": "A Blocks / JavaScript code editor for the micro:bit powered by Microsoft MakeCode.",
|
|
7
|
-
"corepkg": "core",
|
|
8
|
-
"cloud": {
|
|
9
|
-
"workspace": false,
|
|
10
|
-
"packages": true,
|
|
11
|
-
"sharing": true,
|
|
12
|
-
"thumbnails": true,
|
|
13
|
-
"publishing": true,
|
|
14
|
-
"importing": true,
|
|
15
|
-
"preferredPackages": [
|
|
16
|
-
"Microsoft/pxt-neopixel"
|
|
17
|
-
],
|
|
18
|
-
"githubPackages": true,
|
|
19
|
-
"cloudProviders": {
|
|
20
|
-
"github": {}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"compile": {
|
|
24
|
-
"isNative": false,
|
|
25
|
-
"hasHex": true,
|
|
26
|
-
"deployDrives": "(MICROBIT|MBED)",
|
|
27
|
-
"driveName": "MICROBIT",
|
|
28
|
-
"hexMimeType": "application/x-microbit-hex",
|
|
29
|
-
"openocdScript": "source [find interface/cmsis-dap.cfg]; source [find target/nrf51.cfg]",
|
|
30
|
-
"flashUsableEnd": 242688,
|
|
31
|
-
"flashEnd": 242688,
|
|
32
|
-
"flashCodeAlign": 1024,
|
|
33
|
-
"floatingPoint": true,
|
|
34
|
-
"taggedInts": true,
|
|
35
|
-
"utf8": false,
|
|
36
|
-
"gc": true,
|
|
37
|
-
"imageRefTag": 9,
|
|
38
|
-
"shimRenames": {
|
|
39
|
-
"sendBufferAsm": "light::sendWS2812Buffer"
|
|
40
|
-
},
|
|
41
|
-
"patches": {
|
|
42
|
-
"0.0.0 - 1.0.0": [
|
|
43
|
-
{
|
|
44
|
-
"type": "package",
|
|
45
|
-
"map": {
|
|
46
|
-
"microbit": "core",
|
|
47
|
-
"microbit-bluetooth": "bluetooth",
|
|
48
|
-
"microbit-radio": "radio",
|
|
49
|
-
"microbit-devices": "devices",
|
|
50
|
-
"microbit-led": "",
|
|
51
|
-
"microbit-music": "",
|
|
52
|
-
"microbit-game": "",
|
|
53
|
-
"microbit-pins": "",
|
|
54
|
-
"microbit-serial": ""
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "missingPackage",
|
|
59
|
-
"map": {
|
|
60
|
-
"radio\\s*\\.": "radio",
|
|
61
|
-
"bluetooth\\s*\\.": "bluetooth",
|
|
62
|
-
"devices\\s*\\.": "devices"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "api",
|
|
67
|
-
"map": {
|
|
68
|
-
"bluetooth\\s*\\.\\s*uartRead\\s*\\((.*?)\\)": "bluetooth.uartReadUntil($1)",
|
|
69
|
-
"bluetooth\\s*\\.\\s*uartWrite\\s*\\((.*?)\\)": "bluetooth.uartWriteUntil($1)",
|
|
70
|
-
"input\\s*\\.\\s*calibrate\\s*\\(": "input.calibrateCompass(",
|
|
71
|
-
"radio\\s*\\.\\s*onDataPacketReceived\\(\\s*\\(\\{\\s*receivedNumber\\s*\\}\\)\\s*=>\\s*\\{": "radio.onReceivedNumber(function (receivedNumber) {",
|
|
72
|
-
"radio\\s*\\.\\s*onDataPacketReceived\\(\\s*\\(\\{\\s*receivedString: name, receivedNumber: value\\s*\\}\\)\\s*=>\\s*\\{": "radio.onReceivedValue(function (name, value) {",
|
|
73
|
-
"radio\\s*\\.\\s*onDataPacketReceived\\(\\s*\\(\\{\\s*receivedString\\s*\\}\\)\\s*=>\\s*\\{": "radio.onReceivedString(function (receivedString) {",
|
|
74
|
-
"Math\\s*\\.\\s*random\\s*\\(": "Math.randomRange(0, "
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"type": "blockId",
|
|
79
|
-
"map": {
|
|
80
|
-
"device_get_acceleration": "device_acceleration"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "blockValue",
|
|
85
|
-
"map": {
|
|
86
|
-
"device_print_message.message": "text"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"0.0.0 - 1.4.12": [
|
|
91
|
-
{
|
|
92
|
-
"type": "api",
|
|
93
|
-
"map": {
|
|
94
|
-
"DisplayMode\\s*\\.\\s*BackAndWhite": "DisplayMode.BlackAndWhite"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"0.0.0 - 3.1.10": [
|
|
99
|
-
{
|
|
100
|
-
"type": "package",
|
|
101
|
-
"map": {
|
|
102
|
-
"pxt-microbit-v2-extension": "microphone"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"0.0.0 - 3.0.18": [
|
|
107
|
-
{
|
|
108
|
-
"type": "missingPackage",
|
|
109
|
-
"map": {
|
|
110
|
-
".*": "microphone"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
"hidSelectors": [
|
|
116
|
-
{
|
|
117
|
-
"usagePage": "0xFF00",
|
|
118
|
-
"usageId": "0x0001",
|
|
119
|
-
"vid": "0x0d28",
|
|
120
|
-
"pid": "0x0204"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"webUSB": true,
|
|
124
|
-
"useNewFunctions": true,
|
|
125
|
-
"nativeType": "thumb",
|
|
126
|
-
"switches": {},
|
|
127
|
-
"jsRefCounting": false,
|
|
128
|
-
"noSourceInFlash": true
|
|
129
|
-
},
|
|
130
|
-
"compileService": {
|
|
131
|
-
"yottaTarget": "bbc-microbit-classic-gcc@https://github.com/lancaster-university/yotta-target-bbc-microbit-classic-gcc",
|
|
132
|
-
"yottaCorePackage": "microbit",
|
|
133
|
-
"githubCorePackage": "lancaster-university/microbit",
|
|
134
|
-
"gittag": "v2.2.0-rc6",
|
|
135
|
-
"serviceId": "microbit",
|
|
136
|
-
"dockerImage": "pext/yotta:latest",
|
|
137
|
-
"yottaBinary": "pxt-microbit-app-combined.hex"
|
|
138
|
-
},
|
|
139
|
-
"multiVariants": [
|
|
140
|
-
"mbdal",
|
|
141
|
-
"mbcodal"
|
|
142
|
-
],
|
|
143
|
-
"alwaysMultiVariant": true,
|
|
144
|
-
"variants": {
|
|
145
|
-
"mbdal": {
|
|
146
|
-
"compile": {},
|
|
147
|
-
"compileService": {}
|
|
148
|
-
},
|
|
149
|
-
"mbcodal": {
|
|
150
|
-
"compile": {
|
|
151
|
-
"flashCodeAlign": 4096,
|
|
152
|
-
"flashUsableEnd": 487424,
|
|
153
|
-
"flashEnd": 524288
|
|
154
|
-
},
|
|
155
|
-
"compileService": {
|
|
156
|
-
"buildEngine": "codal",
|
|
157
|
-
"codalTarget": {
|
|
158
|
-
"name": "codal-microbit-v2",
|
|
159
|
-
"url": "https://github.com/lancaster-university/codal-microbit-v2",
|
|
160
|
-
"branch": "v0.2.40",
|
|
161
|
-
"type": "git"
|
|
162
|
-
},
|
|
163
|
-
"codalBinary": "MICROBIT",
|
|
164
|
-
"githubCorePackage": "lancaster-university/microbit-v2-samples",
|
|
165
|
-
"gittag": "v0.2.11",
|
|
166
|
-
"serviceId": "mbcodal2",
|
|
167
|
-
"dockerImage": "pext/yotta:latest",
|
|
168
|
-
"yottaConfigCompatibility": true
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"runtime": {
|
|
173
|
-
"mathBlocks": true,
|
|
174
|
-
"loopsBlocks": true,
|
|
175
|
-
"logicBlocks": true,
|
|
176
|
-
"variablesBlocks": true,
|
|
177
|
-
"textBlocks": true,
|
|
178
|
-
"listsBlocks": true,
|
|
179
|
-
"functionBlocks": true,
|
|
180
|
-
"breakBlock": true,
|
|
181
|
-
"continueBlock": true,
|
|
182
|
-
"functionsOptions": {
|
|
183
|
-
"useNewFunctions": true,
|
|
184
|
-
"extraFunctionEditorTypes": [
|
|
185
|
-
{
|
|
186
|
-
"typeName": "game.LedSprite",
|
|
187
|
-
"label": "LedSprite",
|
|
188
|
-
"icon": "send",
|
|
189
|
-
"defaultName": "sprite"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"typeName": "Image",
|
|
193
|
-
"label": "Image",
|
|
194
|
-
"icon": "image outline",
|
|
195
|
-
"defaultName": "image"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
"onStartColor": "#1E90FF",
|
|
200
|
-
"onStartNamespace": "basic",
|
|
201
|
-
"onStartWeight": 54
|
|
202
|
-
},
|
|
203
|
-
"simulator": {
|
|
204
|
-
"autoRun": true,
|
|
205
|
-
"streams": false,
|
|
206
|
-
"aspectRatio": 1.22,
|
|
207
|
-
"parts": true,
|
|
208
|
-
"partsAspectRatio": 0.69,
|
|
209
|
-
"messageSimulators": {
|
|
210
|
-
"jacdac": {
|
|
211
|
-
"url": "https://microsoft.github.io/jacdac-docs/tools/makecode-sim?webusb=0&parentOrigin=$PARENT_ORIGIN$",
|
|
212
|
-
"localHostUrl": "http://localhost:8000/tools/makecode-sim?webusb=0&parentOrigin=$PARENT_ORIGIN$",
|
|
213
|
-
"aspectRatio": 1.22,
|
|
214
|
-
"permanent": true
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"boardDefinition": {
|
|
218
|
-
"visual": "microbit",
|
|
219
|
-
"gpioPinBlocks": [
|
|
220
|
-
[
|
|
221
|
-
"P0"
|
|
222
|
-
],
|
|
223
|
-
[
|
|
224
|
-
"P1"
|
|
225
|
-
],
|
|
226
|
-
[
|
|
227
|
-
"P2"
|
|
228
|
-
],
|
|
229
|
-
[
|
|
230
|
-
"P3"
|
|
231
|
-
],
|
|
232
|
-
[
|
|
233
|
-
"P4",
|
|
234
|
-
"P5",
|
|
235
|
-
"P6",
|
|
236
|
-
"P7"
|
|
237
|
-
],
|
|
238
|
-
[
|
|
239
|
-
"P8",
|
|
240
|
-
"P9",
|
|
241
|
-
"P10",
|
|
242
|
-
"P11",
|
|
243
|
-
"P12"
|
|
244
|
-
],
|
|
245
|
-
[
|
|
246
|
-
"P16"
|
|
247
|
-
]
|
|
248
|
-
],
|
|
249
|
-
"gpioPinMap": {
|
|
250
|
-
"P0": "P0",
|
|
251
|
-
"P1": "P1",
|
|
252
|
-
"P2": "P2",
|
|
253
|
-
"P3": "P3",
|
|
254
|
-
"P4": "P4",
|
|
255
|
-
"P5": "P5",
|
|
256
|
-
"P6": "P6",
|
|
257
|
-
"P7": "P7",
|
|
258
|
-
"P8": "P8",
|
|
259
|
-
"P9": "P9",
|
|
260
|
-
"P10": "P10",
|
|
261
|
-
"P11": "P11",
|
|
262
|
-
"P12": "P12",
|
|
263
|
-
"P13": "P13",
|
|
264
|
-
"P14": "P14",
|
|
265
|
-
"P15": "P15",
|
|
266
|
-
"P16": "P16",
|
|
267
|
-
"P19": "P19",
|
|
268
|
-
"P20": "P20"
|
|
269
|
-
},
|
|
270
|
-
"spiPins": {
|
|
271
|
-
"MOSI": "P15",
|
|
272
|
-
"MISO": "P14",
|
|
273
|
-
"SCK": "P13"
|
|
274
|
-
},
|
|
275
|
-
"i2cPins": {
|
|
276
|
-
"SDA": "P20",
|
|
277
|
-
"SCL": "P19"
|
|
278
|
-
},
|
|
279
|
-
"analogInPins": [
|
|
280
|
-
"P0",
|
|
281
|
-
"P1",
|
|
282
|
-
"P2",
|
|
283
|
-
"P3",
|
|
284
|
-
"P10"
|
|
285
|
-
],
|
|
286
|
-
"groundPins": [
|
|
287
|
-
"GND"
|
|
288
|
-
],
|
|
289
|
-
"threeVoltPins": [
|
|
290
|
-
"+3v3"
|
|
291
|
-
],
|
|
292
|
-
"attachPowerOnRight": true,
|
|
293
|
-
"onboardComponents": [
|
|
294
|
-
"accelerometer",
|
|
295
|
-
"buttonpair",
|
|
296
|
-
"ledmatrix",
|
|
297
|
-
"speaker",
|
|
298
|
-
"bluetooth",
|
|
299
|
-
"thermometer",
|
|
300
|
-
"compass",
|
|
301
|
-
"builtinspeaker",
|
|
302
|
-
"microphone",
|
|
303
|
-
"logotouch",
|
|
304
|
-
"flashlog",
|
|
305
|
-
"v2"
|
|
306
|
-
],
|
|
307
|
-
"pinStyles": {
|
|
308
|
-
"P0": "croc",
|
|
309
|
-
"P1": "croc",
|
|
310
|
-
"P2": "croc",
|
|
311
|
-
"GND": "croc",
|
|
312
|
-
"+3v3": "croc"
|
|
313
|
-
},
|
|
314
|
-
"marginWhenBreadboarding": [
|
|
315
|
-
0,
|
|
316
|
-
0,
|
|
317
|
-
80,
|
|
318
|
-
0
|
|
319
|
-
]
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
"serial": {
|
|
323
|
-
"nameFilter": "^(mbed Serial Port|DAPLink CMSIS-DAP)",
|
|
324
|
-
"log": true,
|
|
325
|
-
"useEditor": true,
|
|
326
|
-
"editorTheme": {
|
|
327
|
-
"graphBackground": "#d9d9d9",
|
|
328
|
-
"lineColors": [
|
|
329
|
-
"#6633cc",
|
|
330
|
-
"#3891A6",
|
|
331
|
-
"#3454D1",
|
|
332
|
-
"#EF767A",
|
|
333
|
-
"#F46197",
|
|
334
|
-
"#107C10"
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
"vendorId": "0x0d28",
|
|
338
|
-
"productId": "0x0204",
|
|
339
|
-
"rawHID": true
|
|
340
|
-
},
|
|
341
|
-
"queryVariants": {
|
|
342
|
-
"hidemenu": {
|
|
343
|
-
"appTheme": {
|
|
344
|
-
"hideMenuBar": true
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
"androidapp": {
|
|
348
|
-
"compile": {
|
|
349
|
-
"webUSB": false
|
|
350
|
-
},
|
|
351
|
-
"appTheme": {
|
|
352
|
-
"disableBlobObjectDownload": true
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
"uploadDocs": true,
|
|
357
|
-
"versions": {
|
|
358
|
-
"branch": "v5.1.2",
|
|
359
|
-
"tag": "v5.1.2",
|
|
360
|
-
"commits": "https://github.com/microsoft/pxt-microbit/commits/30d31b061c2663d60b169b922e3794a20aed2d5c",
|
|
361
|
-
"target": "5.1.2",
|
|
362
|
-
"pxt": "8.2.6"
|
|
363
|
-
},
|
|
364
|
-
"blocksprj": {
|
|
365
|
-
"id": "blocksprj",
|
|
366
|
-
"config": {
|
|
367
|
-
"name": "{0} block",
|
|
368
|
-
"dependencies": {
|
|
369
|
-
"core": "*",
|
|
370
|
-
"radio": "*",
|
|
371
|
-
"microphone": "*"
|
|
372
|
-
},
|
|
373
|
-
"description": "",
|
|
374
|
-
"files": [
|
|
375
|
-
"main.blocks",
|
|
376
|
-
"main.ts",
|
|
377
|
-
"README.md"
|
|
378
|
-
],
|
|
379
|
-
"additionalFilePaths": []
|
|
380
|
-
},
|
|
381
|
-
"files": {
|
|
382
|
-
"README.md": "",
|
|
383
|
-
"main.blocks": "<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n <block type=\"pxt-on-start\"></block>\n <block type=\"device_forever\"></block>\n</xml>",
|
|
384
|
-
"main.ts": "\n"
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
"tsprj": {
|
|
388
|
-
"id": "tsprj",
|
|
389
|
-
"config": {
|
|
390
|
-
"name": "{0} bit",
|
|
391
|
-
"dependencies": {
|
|
392
|
-
"core": "*",
|
|
393
|
-
"radio": "*",
|
|
394
|
-
"microphone": "*"
|
|
395
|
-
},
|
|
396
|
-
"description": "",
|
|
397
|
-
"files": [
|
|
398
|
-
"main.ts",
|
|
399
|
-
"README.md"
|
|
400
|
-
],
|
|
401
|
-
"additionalFilePaths": []
|
|
402
|
-
},
|
|
403
|
-
"files": {
|
|
404
|
-
"README.md": "",
|
|
405
|
-
"main.ts": "basic.showLeds(`\n . . . . .\n . # . # .\n . . . . .\n # . . . #\n . # # # .\n `);"
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
}
|
|
1
|
+
{"id":"microbit","nickname":"microbit","name":"makecode.microbit.org","title":"Microsoft MakeCode for micro:bit","description":"A Blocks / JavaScript code editor for the micro:bit powered by Microsoft MakeCode.","corepkg":"core","cloud":{"workspace":false,"packages":true,"sharing":true,"thumbnails":true,"publishing":true,"importing":true,"showBadges":false,"preferredPackages":["Microsoft/pxt-neopixel"],"githubPackages":true,"cloudProviders":{"github":{}}},"compile":{"isNative":false,"hasHex":true,"deployDrives":"(MICROBIT|MBED)","driveName":"MICROBIT","hexMimeType":"application/x-microbit-hex","openocdScript":"source [find interface/cmsis-dap.cfg]; source [find target/nrf51.cfg]","flashUsableEnd":242688,"flashEnd":242688,"flashCodeAlign":1024,"floatingPoint":true,"taggedInts":true,"utf8":false,"gc":true,"imageRefTag":9,"shimRenames":{"sendBufferAsm":"light::sendWS2812Buffer"},"patches":{"0.0.0 - 1.0.0":[{"type":"package","map":{"microbit":"core","microbit-bluetooth":"bluetooth","microbit-radio":"radio","microbit-devices":"devices","microbit-led":"","microbit-music":"","microbit-game":"","microbit-pins":"","microbit-serial":""}},{"type":"missingPackage","map":{"radio\\s*\\.":"radio","bluetooth\\s*\\.":"bluetooth","devices\\s*\\.":"devices"}},{"type":"api","map":{"bluetooth\\s*\\.\\s*uartRead\\s*\\((.*?)\\)":"bluetooth.uartReadUntil($1)","bluetooth\\s*\\.\\s*uartWrite\\s*\\((.*?)\\)":"bluetooth.uartWriteUntil($1)","input\\s*\\.\\s*calibrate\\s*\\(":"input.calibrateCompass(","radio\\s*\\.\\s*onDataPacketReceived\\(\\s*\\(\\{\\s*receivedNumber\\s*\\}\\)\\s*=>\\s*\\{":"radio.onReceivedNumber(function (receivedNumber) {","radio\\s*\\.\\s*onDataPacketReceived\\(\\s*\\(\\{\\s*receivedString: name, receivedNumber: value\\s*\\}\\)\\s*=>\\s*\\{":"radio.onReceivedValue(function (name, value) {","radio\\s*\\.\\s*onDataPacketReceived\\(\\s*\\(\\{\\s*receivedString\\s*\\}\\)\\s*=>\\s*\\{":"radio.onReceivedString(function (receivedString) {","Math\\s*\\.\\s*random\\s*\\(":"Math.randomRange(0, "}},{"type":"blockId","map":{"device_get_acceleration":"device_acceleration"}},{"type":"blockValue","map":{"device_print_message.message":"text"}}],"0.0.0 - 1.4.12":[{"type":"api","map":{"DisplayMode\\s*\\.\\s*BackAndWhite":"DisplayMode.BlackAndWhite"}}],"0.0.0 - 3.1.10":[{"type":"package","map":{"pxt-microbit-v2-extension":"microphone"}}],"0.0.0 - 3.0.18":[{"type":"missingPackage","map":{".*":"microphone"}}]},"hidSelectors":[{"usagePage":"0xFF00","usageId":"0x0001","vid":"0x0d28","pid":"0x0204"}],"webUSB":true,"useNewFunctions":true,"nativeType":"thumb","switches":{},"jsRefCounting":false,"noSourceInFlash":true},"compileService":{"yottaTarget":"bbc-microbit-classic-gcc@https://github.com/lancaster-university/yotta-target-bbc-microbit-classic-gcc","yottaCorePackage":"microbit","githubCorePackage":"lancaster-university/microbit","gittag":"v2.2.0-rc6","serviceId":"microbit","dockerImage":"pext/yotta:update-yotta3","yottaBinary":"pxt-microbit-app-combined.hex"},"multiVariants":["mbdal","mbcodal"],"alwaysMultiVariant":true,"variants":{"mbdal":{"compile":{},"compileService":{}},"mbcodal":{"compile":{"flashCodeAlign":4096,"flashUsableEnd":487424,"flashEnd":524288},"compileService":{"buildEngine":"codal","codalTarget":{"name":"codal-microbit-v2","url":"https://github.com/lancaster-university/codal-microbit-v2","branch":"v0.2.40","type":"git"},"codalBinary":"MICROBIT","githubCorePackage":"lancaster-university/microbit-v2-samples","gittag":"v0.2.11","serviceId":"mbcodal2","dockerImage":"pext/yotta:update-yotta3","yottaConfigCompatibility":true}}},"runtime":{"mathBlocks":true,"loopsBlocks":true,"logicBlocks":true,"variablesBlocks":true,"textBlocks":true,"listsBlocks":true,"functionBlocks":true,"breakBlock":true,"continueBlock":true,"functionsOptions":{"useNewFunctions":true,"extraFunctionEditorTypes":[{"typeName":"game.LedSprite","label":"LedSprite","icon":"send","defaultName":"sprite"},{"typeName":"Image","label":"Image","icon":"image outline","defaultName":"image"}]},"onStartColor":"#1E90FF","onStartNamespace":"basic","onStartWeight":54},"simulator":{"autoRun":true,"streams":false,"aspectRatio":1.22,"parts":true,"partsAspectRatio":0.69,"messageSimulators":{"jacdac":{"url":"https://microsoft.github.io/jacdac-docs/tools/makecode-sim?webusb=0&parentOrigin=$PARENT_ORIGIN$","localHostUrl":"http://localhost:8000/tools/makecode-sim?webusb=0&parentOrigin=$PARENT_ORIGIN$","aspectRatio":1.22,"permanent":true}},"boardDefinition":{"visual":"microbit","gpioPinBlocks":[["P0"],["P1"],["P2"],["P3"],["P4","P5","P6","P7"],["P8","P9","P10","P11","P12"],["P16"]],"gpioPinMap":{"P0":"P0","P1":"P1","P2":"P2","P3":"P3","P4":"P4","P5":"P5","P6":"P6","P7":"P7","P8":"P8","P9":"P9","P10":"P10","P11":"P11","P12":"P12","P13":"P13","P14":"P14","P15":"P15","P16":"P16","P19":"P19","P20":"P20"},"spiPins":{"MOSI":"P15","MISO":"P14","SCK":"P13"},"i2cPins":{"SDA":"P20","SCL":"P19"},"analogInPins":["P0","P1","P2","P3","P10"],"groundPins":["GND"],"threeVoltPins":["+3v3"],"attachPowerOnRight":true,"onboardComponents":["accelerometer","buttonpair","ledmatrix","speaker","bluetooth","thermometer","compass","builtinspeaker","microphone","logotouch","flashlog","v2"],"pinStyles":{"P0":"croc","P1":"croc","P2":"croc","GND":"croc","+3v3":"croc"},"marginWhenBreadboarding":[0,0,80,0]}},"serial":{"nameFilter":"^(mbed Serial Port|DAPLink CMSIS-DAP)","log":true,"useEditor":true,"editorTheme":{"graphBackground":"#d9d9d9","lineColors":["#6633cc","#3891A6","#3454D1","#EF767A","#F46197","#107C10"]},"vendorId":"0x0d28","productId":"0x0204","rawHID":true},"queryVariants":{"hidemenu":{"appTheme":{"hideMenuBar":true}},"androidapp":{"compile":{"webUSB":false},"appTheme":{"disableBlobObjectDownload":true}},"identity=1":{"cloud":{"cloudProviders":{"github":{"id":"github","name":"GitHub","icon":"/static/providers/github-mark.png","identity":false,"order":3},"microsoft":{"id":"microsoft","name":"Microsoft","icon":"/static/providers/microsoft-logo.svg","identity":true,"redirect":true,"order":1},"google":{"id":"google","name":"Google","icon":"/static/providers/google-logo.svg","identity":true,"redirect":true,"order":2}}}}},"uploadDocs":true,"versions":{"branch":"v5.1.4","tag":"v5.1.4","commits":"https://github.com/microsoft/pxt-microbit/commits/d66c2f78e2cf9cd696e9b1515f2dc25e2e2d26fc","target":"5.1.4","pxt":"8.6.10"},"blocksprj":{"id":"blocksprj","config":{"name":"{0} block","dependencies":{"core":"*","radio":"*","microphone":"*"},"description":"","files":["main.blocks","main.ts","README.md"],"additionalFilePaths":[]},"files":{"README.md":"","main.blocks":"<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n <block type=\"pxt-on-start\"></block>\n <block type=\"device_forever\"></block>\n</xml>","main.ts":"\n"}},"tsprj":{"id":"tsprj","config":{"name":"{0} bit","dependencies":{"core":"*","radio":"*","microphone":"*"},"description":"","files":["main.ts","README.md"],"additionalFilePaths":[]},"files":{"README.md":"","main.ts":"basic.showLeds(`\n . . . . .\n . # . # .\n . . . . .\n # . . . #\n . # # # .\n `);"}}}
|