-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["ms-edu.pxt-vscode-web"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
source 'https://rubygems.org' | ||
gem 'github-pages', group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
all: deploy | ||
|
||
build: | ||
pxt build | ||
|
||
deploy: | ||
pxt deploy | ||
|
||
test: | ||
pxt test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
> Open this page at [https://fermaster.github.io/microbit/](https://fermaster.github.io/microbit/) | ||
## 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/fermaster/microbit** 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/fermaster/microbit** and click import | ||
|
||
#### Metadata (used for search, rendering) | ||
|
||
* for PXT/microbit | ||
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
makecode: | ||
target: microbit | ||
platform: microbit | ||
home_url: https://makecode.microbit.org/ | ||
theme: jekyll-theme-slate | ||
include: | ||
- assets | ||
- README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="$Y)u974!W[.Bt5*Eeu+a">x</variable><variable id="N,Ckhxt]]^-gtrq`CCc*">y</variable></variables><block type="device_forever" id="t{@#rE37w3dP})sZlD9;" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="5C!q9hUgXHgdkU^ymQIR"><field name="VAR" id="$Y)u974!W[.Bt5*Eeu+a">x</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id=".9D.aF|9zExm@2Py~/DA"><field name="NAME">Dimension.X</field></block></value><next><block type="variables_set" id="DpYY8TI9;92xL{0g6*q{"><field name="VAR" id="N,Ckhxt]]^-gtrq`CCc*">y</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="device_acceleration" id="wraULx0uge#gWC2^HFhk"><field name="NAME">Dimension.Y</field></block></value><next><block type="controls_if" id="HgKW_af1@uI$){:Fg1{7"><mutation elseif="1" else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="HSd+ywWsS_t`GK^604ZJ"><field name="OP">GT</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="math_op3" id="Ly]7;kiwSKzNgMY_Lm.m"><value name="x"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="6:h.3@:.(A#Dnnzq%yZO"><field name="VAR" id="$Y)u974!W[.Bt5*Eeu+a">x</field></block></value></block></value><value name="B"><shadow type="math_number" id="e@:{++u4u)__*F.1)_(w"><field name="NUM">32</field></shadow></value></block></value><statement name="DO0"><block type="basic_show_icon" id="mE?FgR}neFSp@-`uq7-x"><field name="i">IconNames.No</field></block></statement><value name="IF1"><block type="logic_compare" id="aBYRTr.ER,PoKdPD6ZE/"><field name="OP">GT</field><value name="A"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="math_op3" id="nj`aUb?+701Ry_MhGYXE"><value name="x"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="[QnAA[{H),]}!T]Z6Yd?"><field name="VAR" id="N,Ckhxt]]^-gtrq`CCc*">y</field></block></value></block></value><value name="B"><shadow type="math_number" id="-_z1PfxHVE/I(;Ge]jTu"><field name="NUM">32</field></shadow></value></block></value><statement name="DO1"><block type="basic_show_icon" id="g~M8oe`SQ;qjNlAcB,Wn"><field name="i">IconNames.TShirt</field></block></statement><statement name="ELSE"><block type="basic_show_icon" id="6$|uZdq7f[(@!Y],gdVz"><field name="i">IconNames.Happy</field></block></statement></block></next></block></next></block></statement></block></xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let x = 0 | ||
let y = 0 | ||
basic.forever(function () { | ||
x = input.acceleration(Dimension.X) | ||
y = input.acceleration(Dimension.Y) | ||
if (Math.abs(x) > 32) { | ||
basic.showIcon(IconNames.No) | ||
} else if (Math.abs(y) > 32) { | ||
basic.showIcon(IconNames.TShirt) | ||
} else { | ||
basic.showIcon(IconNames.Happy) | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "Level", | ||
"description": "", | ||
"dependencies": { | ||
"core": "*", | ||
"radio": "*", | ||
"microphone": "*" | ||
}, | ||
"files": [ | ||
"main.blocks", | ||
"main.ts", | ||
"README.md", | ||
"pxt.json" | ||
], | ||
"testFiles": [ | ||
"test.ts" | ||
], | ||
"targetVersions": { | ||
"target": "6.0.28", | ||
"targetId": "microbit" | ||
}, | ||
"supportedTargets": [ | ||
"microbit" | ||
], | ||
"preferredEditor": "blocksprj" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// tests go here; this will not be compiled when this package is used as an extension. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES5", | ||
"noImplicitAny": true, | ||
"outDir": "built", | ||
"rootDir": "." | ||
}, | ||
"exclude": ["pxt_modules/**/*test.ts"] | ||
} |