pxt-calliope/pxtarget.json
Juri Wolf a93febb5b7
Map and clean deprecated functions (#175)
* add image and deprecated arrow functions

* update locales

* map basic.showArrow

* map arrow blocks

* map & remove arrow images

* remove arrow blocks

* update locales

* remove & patch:
rgbw -> rgb
button/pin pressed -> button/pin event
loudness -> soundLevel

* update ts mappings for arrows

* add wip ts patch rules

* update .blocks files

* use Click instead of Down as default in Documentation and tests

* patch test.blocks

* fix lowercase name tag

* update test.blocks

* update blocks test files

* update blocks test files

* format block files

* pass blocks file tests

* fix ts mapping

* fix color.defl value

closes https://github.com/microsoft/pxt-calliope/issues/136

* fix ts mappings

- add optional spacing at the end of rgbw()
- map up to v4.0.19

* add suggested changes

* replace innerText by textContent

Co-authored-by: JW <gitkraken@juriwolf.de>
Co-authored-by: Juri <info@juriwolf.de>
2022-04-26 10:28:42 -07:00

514 lines
17 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"id": "calliopemini",
"nickname": "mini",
"name": "makecode.calliope.cc",
"title": "Microsoft MakeCode for Calliope mini",
"description": "A Blocks / JavaScript code editor for the Calliope mini powered by Microsoft MakeCode.",
"corepkg": "core",
"bundleddirs": [
"libs/core",
"libs/radio",
"libs/devices",
"libs/bluetooth",
"libs/servo",
"libs/radio-broadcast",
"libs/microphone"
],
"cloud": {
"workspace": false,
"packages": true,
"sharing": true,
"thumbnails": true,
"publishing": true,
"importing": true,
"githubPackages": true,
"cloudProviders": {
"github": {}
}
},
"compile": {
"isNative": false,
"hasHex": true,
"deployDrives": "MINI",
"driveName": "MINI",
"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 - 4.0.20": [
{
"type": "api",
"map": {
"basic\\s*\\.\\s*showArrow\\s*\\(": "basic.showIcon(",
"images\\s*\\.\\s*arrowImage\\s*\\(": "images.iconImage(",
"ArrowNames\\s*\\.\\s*": "IconNames.Arrow",
"input\\s*\\.\\s*onButtonPressed\\s*\\(\\s*(.*?),": "input.onButtonEvent($1, ButtonEvent.Click,",
"input\\s*\\.\\s*onPinPressed\\s*\\(\\s*(.*?),": "input.onPinTouchEvent($1, ButtonEvent.Down,",
"input\\s*\\.\\s*onPinReleased\\s*\\(\\s*(.*?),": "input.onPinTouchEvent($1, ButtonEvent.Up,",
"input\\s*\\.\\s*loudness\\s*\\(": "input.soundLevel(",
"basic\\s*\\.\\s*rgbw\\s*\\(\\s*(.*?),\\s*(.*?),\\s*(.*?),\\s*(.*?)\\s*\\)": "basic.rgb($1, $2, $3)"
}
}
]
},
"hidSelectors": [{
"usagePage": "0xFF00",
"usageId": "0x0001",
"vid": "0x1366",
"pid": "0x1025"
}],
"webUSB": false,
"useNewFunctions": true
},
"compileService": {
"yottaTarget": "calliope-mini-classic-gcc@https://github.com/calliope-mini/target-calliope-mini-classic-gcc#v1.2.4",
"yottaCorePackage": "microbit",
"githubCorePackage": "calliope-mini/microbit",
"gittag": "v2.2.0-rc6-calliope.rc3-iss0.3",
"serviceId": "calliope",
"dockerImage": "pext/yotta:latest"
},
"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": "#54C9C9",
"onStartNamespace": "basic",
"onStartWeight": 60,
"onStartGroup": "Control"
},
"simulator": {
"autoRun": true,
"streams": false,
"aspectRatio": 1.13,
"parts": false,
"partsAspectRatio": 0.69,
"boardDefinition": {
"visual": "calliope",
"gpioPinBlocks": [
[
"EDGE_P0"
],
[
"EDGE_P1"
],
[
"EDGE_P2"
],
[
"EDGE_P3"
],
[
"C_P4",
"C_P5",
"C_P6",
"C_P7"
],
[
"C_P8",
"C_P9",
"C_P10",
"C_P11",
"C_P12"
],
[
"C_P16"
]
],
"gpioPinMap": {
"P0": "EDGE_P0",
"P1": "EDGE_P1",
"P2": "EDGE_P2",
"P3": "EDGE_P3",
"C4": "C_P4",
"C5": "C_P5",
"C6": "C_P6",
"C7": "C_P7",
"C8": "C_P8",
"C9": "C_P9",
"C10": "C_P10",
"C11": "C_P11",
"C12": "C_P12",
"C13": "C_P13",
"C14": "C_P14",
"C15": "C_P15",
"C19": "C_P19",
"C20": "C_P20",
"EXT_PWR": "EXT_PWR",
"SPKR": "SPKR",
"BTN_A": "BTN_A",
"BTN_B": "BTN_B",
"MOTOR1": "M_OUT1",
"MOTOR2": "M_OUT2"
},
"spiPins": {
"MOSI": "C_P15",
"MISO": "C_P14",
"SCK": "C_P13"
},
"i2cPins": {
"SDA": "C_P20",
"SCL": "C_P19"
},
"analogInPins": [
"P1",
"P2",
"C4",
"C5",
"C6"
],
"groundPins": [
"EDGE_GND"
],
"threeVoltPins": [
"EDGE_VCC"
],
"attachPowerOnRight": true,
"onboardComponents": [
"accelerometer",
"buttonpair",
"ledmatrix",
"speaker",
"bluetooth",
"thermometer",
"compass",
"speaker",
"microphone",
"rgbled"
],
"pinStyles": {
"P0": "croc",
"P1": "croc",
"P2": "croc",
"P3": "croc",
"EDGE_GND": "croc",
"EDGE_VCC": "croc"
},
"marginWhenBreadboarding": [
0,
0,
80,
0
]
}
},
"serial": {
"nameFilter": "^(Calliope mini|mbed Serial Port|DAPLink CMSIS-DAP)",
"log": true,
"useEditor": true,
"editorTheme": {
"graphBackground": "#d9d9d9",
"lineColors": [
"#6633cc",
"#3891A6",
"#3454D1",
"#EF767A",
"#F46197",
"#107C10"
]
},
"vendorId": "0x1366",
"productId": "0x1025",
"rawHID": true
},
"appTheme": {
"accentColor": "#249899",
"defaultLocale": "de",
"logoUrl": "https://calliope.cc/",
"logo": "./static/Calliopeminieditor.svg",
"docsLogo": "./static/Logo_Calliope_Woman.svg",
"portraitLogo": "./static/Logo_Calliope_Woman.svg",
"footerLogo": "./static/Calliopeminieditor.svg",
"cardLogo": "./static/icons/apple-touch-icon.png",
"appLogo": "./static/icons/apple-touch-icon.png",
"organization": "Microsoft MakeCode",
"organizationUrl": "https://makecode.com/",
"organizationLogo": "./static/Microsoft-logo_rgb_c-gray-square.png",
"organizationWideLogo": "./static/Microsoft-logo_rgb_c-white.png",
"homeScreenHero": {
"imageUrl": "./static/hero.jpg",
"name": "Flashing Heart",
"url": "/calliope/firststeps/firstSteps",
"description": "Let's go start your first tutorial with Calliope mini",
"cardType": "tutorial"
},
"homeScreenHeroGallery": "/hero-banner",
"homeUrl": "https://makecode.calliope.cc/",
"embedUrl": "https://makecode.calliope.cc/",
"shareUrl": "https://makecode.calliope.cc/",
"privacyUrl": "https://go.microsoft.com/fwlink/?LinkId=521839",
"termsOfUseUrl": "https://go.microsoft.com/fwlink/?LinkID=206977",
"githubUrl": "https://github.com/Microsoft/pxt-calliope",
"boardName": "Calliope mini",
"driveDisplayName": "MINI",
"appStoreID": "1309545545",
"crowdinProject": "makecode",
"extendEditor": true,
"extendFieldEditors": true,
"enableTrace": true,
"errorList": true,
"allowPackageExtensions": true,
"addNewTypeScriptFile": true,
"experiments": [
"accessibleBlocks",
"debugExtensionCode",
"bluetoothUartConsole",
"bluetoothPartialFlashing",
"simScreenshot",
"simGif",
"blocksErrorList"
],
"bluetoothUartFilters": [{
"namePrefix": "Calliope mini"
}],
"docMenu": [{
"name": "Support",
"path": "https://calliope.cc/en/impressum"
},
{
"name": "Reference",
"path": "/about"
},
{
"name": "Hardware",
"path": "https://calliope.cc/en/calliope-mini/tech-facts/"
},
{
"name": "Buy",
"path": "https://shop.calliope.cc/"
},
{
"name": "Forum",
"path": "https://forum.calliope.cc/"
}
],
"hasReferenceDocs": false,
"hideHomeDetailsVideo": true,
"invertedMenu": true,
"coloredToolbox": true,
"monacoToolbox": true,
"hasAudio": true,
"socialOptions": {
"orgTwitterHandle": "calliopemini",
"hashtags": "calliopemini",
"discourse": "https://forum.calliope.cc/",
"discourseCategory": "Probleme-Software"
},
"blocklyOptions": {
"grid": {
"spacing": 45,
"length": 7,
"colour": "rgba(189, 195, 199, 0.30)",
"snap": false
}
},
"blockColors": {
"basic": "#54C9C9",
"input": "#C94600",
"music": "#DF4600",
"led": "#8169E6",
"radio": "#E3008C",
"motors": "#008272",
"logic": "#006970",
"loops": "#107C10",
"math": "#712672",
"variables": "#A80000",
"text": "#996600",
"advanced": "#42495f",
"functions": "#005A9E",
"arrays": "#E65722"
},
"blocksCollapsing": true,
"highContrast": true,
"greenScreen": true,
"print": true,
"selectLanguage": true,
"availableLocales": [
"en",
"ar",
"bg",
"cs",
"cy",
"da",
"de",
"el",
"es-ES",
"fi",
"fr",
"he",
"hu",
"is",
"it",
"ja",
"ko",
"nl",
"nb",
"nn-NO",
"pl",
"pt-BR",
"pt-PT",
"ru",
"si-LK",
"sk",
"sr",
"sv-SE",
"tr",
"uk",
"zh-CN",
"zh-TW"
],
"monacoColors": {
"editor.background": "#ecf0f1"
},
"browserDbPrefixes": {
"1": "v1",
"2": "v2",
"3": "v3",
"4": "v4"
},
"editorVersionPaths": {
"0": "v0"
},
"showProjectSettings": true,
"scriptManager": true,
"debugger": true,
"simGifTransparent": "rgba(0,0,0,0)",
"simGifMaxFrames": 44,
"simScreenshotMaxUriLength": 300000,
"qrCode": true,
"importExtensionFiles": true,
"nameProjectFirst": true,
"githubEditor": true,
"tutorialBlocksDiff": false,
"chooseLanguageRestrictionOnNewProject": true,
"openProjectNewTab": true,
"python": true,
"appFlashingTroubleshoot": "/device/windows-app/troubleshoot",
"immersiveReader": true,
"tutorialCodeValidation": true,
"downloadDialogTheme": {
"webUSBDeviceNames": ["Calliope mini CMSIS-DAP", "DAPLink CMSIS-DAP"],
"minimumFirmwareVersion": "0249",
"deviceIcon": "xicon microbit",
"deviceSuccessIcon": "xicon microbit-check",
"downloadMenuHelpURL": "/device/usb",
"downloadHelpURL": "/device/usb",
"firmwareHelpURL": "/device/usb/webusb/troubleshoot",
"troubleshootWebUSBHelpURL": "/device/usb/webusb/troubleshoot",
"incompatibleHardwareHelpURL": "/device/v2",
"dragFileImage": "./static/download/transfer.png",
"connectDeviceImage": "./static/download/connect.png",
"selectDeviceImage": "./static/download/pair.png",
"connectionSuccessImage": "/static/download/connected.png",
"checkFirmwareVersionImage": "./static/download/firmware.png",
"checkUSBCableImage": "./static/download/connect.pn",
"incompatibleHardwareImage": "/static/download/incompatible.png"
},
"winAppDeprImage": "/static/winapp.PNG",
"showWinAppDeprBanner": false
},
"queryVariants": {
"hidemenu": {
"appTheme": {
"hideMenuBar": true
}
},
"androidapp": {
"compile": {
"webUSB": false
},
"appTheme": {
"disableBlobObjectDownload": true
}
}
},
"ignoreDocsErrors": true,
"uploadDocs": true
}