Merge branch 'master' of https://github.com/Microsoft/pxt-microbit
This commit is contained in:
commit
26e20d75a4
0
libs/templates/bluetoothprj/README.md
Normal file
0
libs/templates/bluetoothprj/README.md
Normal file
62
libs/templates/bluetoothprj/main.blocks
Normal file
62
libs/templates/bluetoothprj/main.blocks
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<block type="device_forever">
|
||||||
|
<statement name="HANDLER">
|
||||||
|
<block type="device_show_leds">
|
||||||
|
<field name="LED00">FALSE</field>
|
||||||
|
<field name="LED10">FALSE</field>
|
||||||
|
<field name="LED20">FALSE</field>
|
||||||
|
<field name="LED30">FALSE</field>
|
||||||
|
<field name="LED40">FALSE</field>
|
||||||
|
<field name="LED01">FALSE</field>
|
||||||
|
<field name="LED11">TRUE</field>
|
||||||
|
<field name="LED21">FALSE</field>
|
||||||
|
<field name="LED31">TRUE</field>
|
||||||
|
<field name="LED41">FALSE</field>
|
||||||
|
<field name="LED02">FALSE</field>
|
||||||
|
<field name="LED12">FALSE</field>
|
||||||
|
<field name="LED22">FALSE</field>
|
||||||
|
<field name="LED32">FALSE</field>
|
||||||
|
<field name="LED42">FALSE</field>
|
||||||
|
<field name="LED03">TRUE</field>
|
||||||
|
<field name="LED13">FALSE</field>
|
||||||
|
<field name="LED23">FALSE</field>
|
||||||
|
<field name="LED33">FALSE</field>
|
||||||
|
<field name="LED43">TRUE</field>
|
||||||
|
<field name="LED04">FALSE</field>
|
||||||
|
<field name="LED14">TRUE</field>
|
||||||
|
<field name="LED24">TRUE</field>
|
||||||
|
<field name="LED34">TRUE</field>
|
||||||
|
<field name="LED44">FALSE</field>
|
||||||
|
<next>
|
||||||
|
<block type="device_show_leds">
|
||||||
|
<field name="LED00">FALSE</field>
|
||||||
|
<field name="LED10">FALSE</field>
|
||||||
|
<field name="LED20">FALSE</field>
|
||||||
|
<field name="LED30">FALSE</field>
|
||||||
|
<field name="LED40">FALSE</field>
|
||||||
|
<field name="LED01">FALSE</field>
|
||||||
|
<field name="LED11">FALSE</field>
|
||||||
|
<field name="LED21">FALSE</field>
|
||||||
|
<field name="LED31">FALSE</field>
|
||||||
|
<field name="LED41">FALSE</field>
|
||||||
|
<field name="LED02">FALSE</field>
|
||||||
|
<field name="LED12">FALSE</field>
|
||||||
|
<field name="LED22">FALSE</field>
|
||||||
|
<field name="LED32">FALSE</field>
|
||||||
|
<field name="LED42">FALSE</field>
|
||||||
|
<field name="LED03">FALSE</field>
|
||||||
|
<field name="LED13">FALSE</field>
|
||||||
|
<field name="LED23">FALSE</field>
|
||||||
|
<field name="LED33">FALSE</field>
|
||||||
|
<field name="LED43">FALSE</field>
|
||||||
|
<field name="LED04">FALSE</field>
|
||||||
|
<field name="LED14">FALSE</field>
|
||||||
|
<field name="LED24">FALSE</field>
|
||||||
|
<field name="LED34">FALSE</field>
|
||||||
|
<field name="LED44">FALSE</field>
|
||||||
|
</block>
|
||||||
|
</next>
|
||||||
|
</block>
|
||||||
|
</statement>
|
||||||
|
</block>
|
||||||
|
</xml>
|
16
libs/templates/bluetoothprj/main.ts
Normal file
16
libs/templates/bluetoothprj/main.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
basic.forever(() => {
|
||||||
|
basic.showLeds(`
|
||||||
|
. # . # .
|
||||||
|
# . # . #
|
||||||
|
# . . . #
|
||||||
|
. # . # .
|
||||||
|
. . # . .
|
||||||
|
`)
|
||||||
|
basic.showLeds(`
|
||||||
|
. . . . .
|
||||||
|
. . . . .
|
||||||
|
. . . . .
|
||||||
|
. . . . .
|
||||||
|
. . . . .
|
||||||
|
`)
|
||||||
|
})
|
13
libs/templates/bluetoothprj/pxt.json
Normal file
13
libs/templates/bluetoothprj/pxt.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "{0} block",
|
||||||
|
"dependencies": {
|
||||||
|
"core": "*",
|
||||||
|
"bluetooth": "*"
|
||||||
|
},
|
||||||
|
"description": "",
|
||||||
|
"files": [
|
||||||
|
"main.blocks",
|
||||||
|
"main.ts",
|
||||||
|
"README.md"
|
||||||
|
]
|
||||||
|
}
|
8
libs/templates/bluetoothprj/tsconfig.json
Normal file
8
libs/templates/bluetoothprj/tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"outDir": "built",
|
||||||
|
"rootDir": "."
|
||||||
|
}
|
||||||
|
}
|
@ -20,11 +20,11 @@
|
|||||||
"built/*.js",
|
"built/*.js",
|
||||||
"built/*.json",
|
"built/*.json",
|
||||||
"built/*.d.ts",
|
"built/*.d.ts",
|
||||||
|
"built/hexcache",
|
||||||
"sim/public",
|
"sim/public",
|
||||||
"docs/*.md",
|
"docs/*.md",
|
||||||
"docs/*/*.md",
|
"docs/*/*.md",
|
||||||
"docs/*/*/*.md",
|
"docs/*/*/*.md"
|
||||||
"hexcache/*.hex"
|
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^1.8.7"
|
"typescript": "^1.8.7"
|
||||||
|
Loading…
Reference in New Issue
Block a user