352 lines
12 KiB
JSON
352 lines
12 KiB
JSON
{
|
|
"id": "microbit",
|
|
"nickname": "microbit",
|
|
"name": "pxt.microbit.org",
|
|
"title": "pxt.microbit.org - Blocks / Javascript editor for micro:bit",
|
|
"description": "A Blocks / JavaScript code editor for the micro:bit.",
|
|
"corepkg": "core",
|
|
"bundleddirs": [
|
|
"libs/core",
|
|
"libs/radio",
|
|
"libs/devices",
|
|
"libs/bluetooth"
|
|
],
|
|
"cloud": {
|
|
"workspace": false,
|
|
"packages": true,
|
|
"sharing": false,
|
|
"publish": false,
|
|
"preferredPackages": [
|
|
"Microsoft/pxt-neopixel"
|
|
],
|
|
"githubPackages": false
|
|
},
|
|
"blocksprj": {
|
|
"id": "blocksprj",
|
|
"config": {
|
|
"name": "{0} block",
|
|
"dependencies": {
|
|
"core": "*",
|
|
"radio": "*"
|
|
},
|
|
"description": "",
|
|
"files": [
|
|
"main.blocks",
|
|
"main.ts",
|
|
"README.md"
|
|
]
|
|
},
|
|
"files": {
|
|
"main.blocks": "<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n<block type=\"device_forever\">\n<statement name=\"HANDLER\">\n<block type=\"device_show_leds\">\n<field name=\"LED00\">FALSE</field>\n<field name=\"LED10\">FALSE</field>\n<field name=\"LED20\">FALSE</field>\n<field name=\"LED30\">FALSE</field>\n<field name=\"LED40\">FALSE</field>\n<field name=\"LED01\">FALSE</field>\n<field name=\"LED11\">TRUE</field>\n<field name=\"LED21\">FALSE</field>\n<field name=\"LED31\">TRUE</field>\n<field name=\"LED41\">FALSE</field>\n<field name=\"LED02\">FALSE</field>\n<field name=\"LED12\">FALSE</field>\n<field name=\"LED22\">FALSE</field>\n<field name=\"LED32\">FALSE</field>\n<field name=\"LED42\">FALSE</field>\n<field name=\"LED03\">TRUE</field>\n<field name=\"LED13\">FALSE</field>\n<field name=\"LED23\">FALSE</field>\n<field name=\"LED33\">FALSE</field>\n<field name=\"LED43\">TRUE</field>\n<field name=\"LED04\">FALSE</field>\n<field name=\"LED14\">TRUE</field>\n<field name=\"LED24\">TRUE</field>\n<field name=\"LED34\">TRUE</field>\n<field name=\"LED44\">FALSE</field>\n<next>\n<block type=\"device_show_leds\">\n<field name=\"LED00\">FALSE</field>\n<field name=\"LED10\">FALSE</field>\n<field name=\"LED20\">FALSE</field>\n<field name=\"LED30\">FALSE</field>\n<field name=\"LED40\">FALSE</field>\n<field name=\"LED01\">FALSE</field>\n<field name=\"LED11\">FALSE</field>\n<field name=\"LED21\">FALSE</field>\n<field name=\"LED31\">FALSE</field>\n<field name=\"LED41\">FALSE</field>\n<field name=\"LED02\">FALSE</field>\n<field name=\"LED12\">FALSE</field>\n<field name=\"LED22\">FALSE</field>\n<field name=\"LED32\">FALSE</field>\n<field name=\"LED42\">FALSE</field>\n<field name=\"LED03\">FALSE</field>\n<field name=\"LED13\">FALSE</field>\n<field name=\"LED23\">FALSE</field>\n<field name=\"LED33\">FALSE</field>\n<field name=\"LED43\">FALSE</field>\n<field name=\"LED04\">FALSE</field>\n<field name=\"LED14\">FALSE</field>\n<field name=\"LED24\">FALSE</field>\n<field name=\"LED34\">FALSE</field>\n<field name=\"LED44\">FALSE</field>\n</block>\n</next>\n</block>\n</statement>\n</block>\n</xml>",
|
|
"main.ts": "basic.forever(() => {\r\n basic.showLeds(`\r\n . # . # .\r\n # . # . #\r\n # . . . #\r\n . # . # .\r\n . . # . .\r\n `)\r\n basic.showLeds(`\r\n . . . . .\r\n . . . . .\r\n . . . . .\r\n . . . . .\r\n . . . . .\r\n `)\r\n})\r\n",
|
|
"README.md": ""
|
|
}
|
|
},
|
|
"tsprj": {
|
|
"id": "tsprj",
|
|
"config": {
|
|
"name": "{0} bit",
|
|
"dependencies": {
|
|
"core": "*",
|
|
"radio": "*"
|
|
},
|
|
"description": "",
|
|
"files": [
|
|
"main.ts",
|
|
"README.md"
|
|
]
|
|
},
|
|
"files": {
|
|
"main.ts": "basic.showLeds(`\r\n . . . . .\r\n . # . # .\r\n . . . . .\r\n # . . . #\r\n . # # # .\r\n `);",
|
|
"README.md": ""
|
|
}
|
|
},
|
|
"compile": {
|
|
"isNative": false,
|
|
"hasHex": true,
|
|
"deployDrives": "(MICROBIT|MBED)",
|
|
"driveName": "MICROBIT",
|
|
"hexMimeType": "application/x-microbit-hex",
|
|
"upgrades": [
|
|
{
|
|
"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": "api",
|
|
"map": {
|
|
"bluetooth\\.uartRead\\((.*?)\\)": "bluetooth.uartReadUntil($1)",
|
|
"bluetooth\\.uartWrite\\((.*?)\\)": "bluetooth.uartWriteUntil($1)"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"runtime": {
|
|
"mathBlocks": true,
|
|
"loopsBlocks": true,
|
|
"logicBlocks": true,
|
|
"variablesBlocks": true
|
|
},
|
|
"simulator": {
|
|
"autoRun": true,
|
|
"streams": true,
|
|
"aspectRatio": 1.22,
|
|
"parts": true,
|
|
"partsAspectRatio": 0.69,
|
|
"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"
|
|
],
|
|
"useCrocClips": true,
|
|
"marginWhenBreadboarding": [
|
|
0,
|
|
0,
|
|
80,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"compileService": {
|
|
"yottaTarget": "bbc-microbit-classic-gcc",
|
|
"yottaCorePackage": "pxt-microbit-core",
|
|
"githubCorePackage": "microsoft/pxt-microbit-core",
|
|
"gittag": "v0.5.0",
|
|
"serviceId": "ws"
|
|
},
|
|
"serial": {
|
|
"manufacturerFilter": "^mbed$",
|
|
"nameFilter": "^mbed Serial Port",
|
|
"log": true
|
|
},
|
|
"appTheme": {
|
|
"accentColor": "#5C005C",
|
|
"logoUrl": "http://microbit.org/",
|
|
"logo": "./static/logo.portrait.black.svg",
|
|
"docsLogo": "./static/logo.square.white.svg",
|
|
"portraitLogo": "./static/logo.square.black.svg",
|
|
"footerLogo": "./static/logo.portrait.black.svg",
|
|
"cardLogo": "https://az851932.vo.msecnd.net/pub/drbwxcth",
|
|
"appLogo": "https://az851932.vo.msecnd.net/pub/tbhemtig",
|
|
"organization": "Microsoft",
|
|
"organizationUrl": "https://pxt.io/",
|
|
"organizationLogo": "./static/Microsoft-logo_rgb_c-gray.png",
|
|
"homeUrl": "https://pxt.microbit.org/",
|
|
"embedUrl": "https://pxt.microbit.org/",
|
|
"privacyUrl": "https://go.microsoft.com/fwlink/?LinkId=521839",
|
|
"termsOfUseUrl": "https://go.microsoft.com/fwlink/?LinkID=206977",
|
|
"githubUrl": "https://github.com/Microsoft/pxt-microbit",
|
|
"boardName": "micro:bit",
|
|
"sideDoc": "getting-started",
|
|
"browserSupport": [
|
|
{
|
|
"name": "unsupported",
|
|
"os": "*",
|
|
"path": "/browsers"
|
|
},
|
|
{
|
|
"name": "unsupported",
|
|
"os": "mac",
|
|
"path": "/browsers/mac"
|
|
},
|
|
{
|
|
"name": "unsupported",
|
|
"os": "linux",
|
|
"path": "browsers/linux"
|
|
},
|
|
{
|
|
"name": "unsupported",
|
|
"os": "rpi",
|
|
"path": "/raspberry-pi"
|
|
},
|
|
{
|
|
"name": "unsupported",
|
|
"os": "windows",
|
|
"path": "/browsers/windows"
|
|
}
|
|
],
|
|
"docMenu": [
|
|
{
|
|
"name": "Support",
|
|
"path": "https://support.microbit.org/"
|
|
},
|
|
{
|
|
"name": "Getting Started",
|
|
"path": "/getting-started"
|
|
},
|
|
{
|
|
"name": "Projects",
|
|
"path": "/projects"
|
|
},
|
|
{
|
|
"name": "Reference",
|
|
"path": "/reference"
|
|
},
|
|
{
|
|
"name": "Blocks",
|
|
"path": "/blocks"
|
|
},
|
|
{
|
|
"name": "JavaScript",
|
|
"path": "/javascript"
|
|
},
|
|
{
|
|
"name": "Hardware",
|
|
"path": "/device"
|
|
}
|
|
],
|
|
"usbDocs": "/device/usb",
|
|
"usbHelp": [
|
|
{
|
|
"name": "connection",
|
|
"os": "*",
|
|
"browser": "*",
|
|
"path": "/static/mb/device/usb-generic.jpg"
|
|
},
|
|
{
|
|
"name": "connection",
|
|
"os": "mac",
|
|
"browser": "*",
|
|
"path": "/static/mb/device/usb-mac.jpg"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"os": "windows",
|
|
"browser": "firefox",
|
|
"path": "/static/mb/device/usb-windows-firefox-1.png"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"os": "mac",
|
|
"browser": "firefox",
|
|
"path": "/static/mb/device/usb-osx-firefox-1.jpg"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"os": "mac",
|
|
"browser": "chrome",
|
|
"path": "/static/mb/device/usb-osx-chrome.png"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"os": "windows",
|
|
"browser": "edge",
|
|
"path": "/static/mb/device/usb-windows-edge-1.png"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"os": "windows",
|
|
"browser": "ie",
|
|
"path": "/static/mb/device/usb-windows-ie11-1.png"
|
|
},
|
|
{
|
|
"name": "save",
|
|
"os": "windows",
|
|
"browser": "chrome",
|
|
"path": "/static/mb/device/usb-windows-chrome.png"
|
|
},
|
|
{
|
|
"name": "copy",
|
|
"os": "mac",
|
|
"browser": "*",
|
|
"path": "/static/mb/device/usb-osx-dnd.png"
|
|
},
|
|
{
|
|
"name": "copy",
|
|
"os": "windows",
|
|
"browser": "*",
|
|
"path": "/static/mb/device/usb-windows-sendto.jpg"
|
|
}
|
|
]
|
|
}
|
|
} |