diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..65a6eec --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["ms-edu.pxt-vscode-web"] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d865f58 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,29 @@ +{ + "editor.formatOnType": true, + "files.autoSave": "afterDelay", + "files.watcherExclude": { + "**/.git/objects/**": true, + "**/built/**": true, + "**/node_modules/**": true, + "**/yotta_modules/**": true, + "**/yotta_targets": true, + "**/pxt_modules/**": true, + "**/.pxt/**": true + }, + "files.associations": { + "*.blocks": "html", + "*.jres": "json" + }, + "search.exclude": { + "**/built": true, + "**/node_modules": true, + "**/yotta_modules": true, + "**/yotta_targets": true, + "**/pxt_modules": true, + "**/.pxt": true + }, + "files.exclude": { + "**/pxt_modules": true, + "**/.pxt": true + } +} \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..91ceacd --- /dev/null +++ b/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9068464 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +all: deploy + +build: + pxt build + +deploy: + pxt deploy + +test: + pxt test diff --git a/README.md b/README.md new file mode 100644 index 0000000..78b987e --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ + +> Open this page at [https://hacklabpr.github.io/hacklab-microbit-radio-communication/](https://hacklabpr.github.io/hacklab-microbit-radio-communication/) + +## Use as Extension + +This repository can be added as an **extension** in MakeCode. + +* open [https://makecode.microbit.org/](https://makecode.microbit.org/) +* click on **New Project** +* click on **Extensions** under the gearwheel menu +* search for **https://github.com/hacklabpr/hacklab-microbit-radio-communication** and import + +## Edit this project + +To edit this repository in MakeCode. + +* open [https://makecode.microbit.org/](https://makecode.microbit.org/) +* click on **Import** then click on **Import URL** +* paste **https://github.com/hacklabpr/hacklab-microbit-radio-communication** and click import + +#### Metadata (used for search, rendering) + +* for PXT/microbit + diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..f56a029 --- /dev/null +++ b/_config.yml @@ -0,0 +1,8 @@ +makecode: + target: microbit + platform: microbit + home_url: https://makecode.microbit.org/ +theme: jekyll-theme-slate +include: + - assets + - README.md diff --git a/_history b/_history new file mode 100644 index 0000000..5910339 --- /dev/null +++ b/_history @@ -0,0 +1 @@ +{"entries":[{"timestamp":1731736181182,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"main.blocks","patch":[{"diffs":[[0,"http"],[-1,"s"],[0,"://"],[-1,"developers.google.com/blockly/xml\">\n "],[1,"\n "],[0,""],[1,"\n"],[0,""]],"start1":112,"start2":112,"length1":14,"length2":15}]},{"type":"edited","filename":"main.ts","patch":[{"diffs":[[-1,"basic.forever(function () {\n\t\n})"],[0,"\n"]],"start1":0,"start2":0,"length1":33,"length2":1}]},{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0," \""],[-1,"testFiles\": [\n \"test.ts\"\n ],\n \"preferredEditor\": \"blocksprj\""],[1,"preferredEditor\": \"blocksprj\",\n \"additionalFilePaths\": []"],[0,"\n}\n"]],"start1":239,"start2":239,"length1":80,"length2":67}]},{"type":"added","filename":"test.ts","value":"// tests go here; this will not be compiled when this package is used as an extension.\n"}]}],"snapshots":[{"timestamp":1731736181181,"editorVersion":"7.0.51","text":{"main.blocks":"\n \n \n","main.ts":"","README.md":"","pxt.json":"{\n \"name\": \"Light blaster\\n\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\"\n ],\n \"preferredEditor\": \"blocksprj\",\n \"additionalFilePaths\": []\n}\n"}}],"shares":[],"lastSaveTime":1731736459745} \ No newline at end of file diff --git a/main.blocks b/main.blocks new file mode 100644 index 0000000..5b2abac --- /dev/null +++ b/main.blocks @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/main.ts b/main.ts new file mode 100644 index 0000000..ee54a1b --- /dev/null +++ b/main.ts @@ -0,0 +1,3 @@ +basic.forever(function () { + +}) diff --git a/pxt.json b/pxt.json new file mode 100644 index 0000000..a5876ed --- /dev/null +++ b/pxt.json @@ -0,0 +1,25 @@ +{ + "name": "Light blaster\n", + "description": "", + "dependencies": { + "core": "*", + "radio": "*", + "microphone": "*" + }, + "files": [ + "main.blocks", + "main.ts", + "README.md" + ], + "testFiles": [ + "test.ts" + ], + "targetVersions": { + "target": "7.0.51", + "targetId": "microbit" + }, + "supportedTargets": [ + "microbit" + ], + "preferredEditor": "blocksprj" +} diff --git a/test.ts b/test.ts new file mode 100644 index 0000000..7bf240c --- /dev/null +++ b/test.ts @@ -0,0 +1 @@ +// tests go here; this will not be compiled when this package is used as an extension. diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..46f831b --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "target": "ES5", + "noImplicitAny": true, + "outDir": "built", + "rootDir": "." + }, + "exclude": ["pxt_modules/**/*test.ts"] +}