Compare commits
37 Commits
v2.1.33
...
newtypescr
Author | SHA1 | Date | |
---|---|---|---|
7ca2432652 | |||
5bffab8736 | |||
f53010763a | |||
7e7414ad4e | |||
6183c38253 | |||
64161dea1b | |||
3fa148d35a | |||
8aefd3e6bc | |||
b4a9c98a88 | |||
964daade75 | |||
09b254671d | |||
766708e4ab | |||
85b3fdd281 | |||
c1480cbc8b | |||
ae57052452 | |||
b62cd1ca17 | |||
2a30a2dd76 | |||
3fcd625555 | |||
9392c22424 | |||
0720c3b8f5 | |||
c2d06e3444 | |||
2d5582dd6a | |||
0bad95322b | |||
dd63007fe7 | |||
c2314827c7 | |||
25475acd0d | |||
72b9716721 | |||
12dc012887 | |||
1891d440e1 | |||
45411fbfcd | |||
c639609ce5 | |||
9655b6c64c | |||
1a5555ed52 | |||
e5adf2029e | |||
dcea457cb5 | |||
37a531880b | |||
f60daf0e68 |
31
.github/workflows/pxt-buildpr.yml
vendored
Normal file
31
.github/workflows/pxt-buildpr.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: pxt-buildpr
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [8.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: npm install
|
||||
run: |
|
||||
sudo apt-get install xvfb
|
||||
sudo npm install -g pxt
|
||||
npm install
|
||||
- name: pxt ci
|
||||
run: |
|
||||
pxt ci
|
||||
env:
|
||||
CHROME_BIN: chromium-browser
|
||||
DISPLAY: :99.0
|
||||
CI: true
|
39
.github/workflows/pxt-buildtarget.yml
vendored
Normal file
39
.github/workflows/pxt-buildtarget.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: pxt-buildtarget
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
create:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [8.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: npm install
|
||||
run: |
|
||||
sudo apt-get install xvfb
|
||||
sudo npm install -g pxt
|
||||
npm install
|
||||
- name: pxt ci
|
||||
run: |
|
||||
pxt ci
|
||||
env:
|
||||
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
|
||||
PXT_ACCESS_TOKEN: ${{ secrets.PXT_ACCESS_TOKEN }}
|
||||
PXT_RELEASE_REPO: ${{ secrets.PXT_RELEASE_REPO }}
|
||||
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
|
||||
CHROME_BIN: chromium-browser
|
||||
DISPLAY: :99.0
|
||||
CI: true
|
@ -1,7 +1,8 @@
|
||||
# Calliope target for Microsoft MakeCode [](https://travis-ci.org/microsoft/pxt-calliope)
|
||||
# Calliope target for Microsoft MakeCode
|
||||
|
||||
This editor is hosted at https://makecode.calliope.cc.
|
||||
|
||||
* Got a question? Try the forum at https://forum.calliope.cc/
|
||||
|
||||
### BUILD COMMENTS
|
||||
|
||||
|
@ -10,8 +10,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Get Ready",
|
||||
"url":"/calliope/firststeps/firstSteps",
|
||||
"description": "Find out how to start working with the Calliope mini",
|
||||
"imageUrl": "/docs/calliope/firststeps/connecting.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/firstSteps.jpg",
|
||||
"imageUrl": "/calliope/firststeps/connecting.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/firstSteps.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "Never seen a mini? Start Here!",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -20,8 +20,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "The 5x5 LED matrix",
|
||||
"url":"/calliope/firststeps/5x5LED",
|
||||
"description": "Learn how to create and show images, numbers or letters on the LED matrix",
|
||||
"imageUrl": "/docs/calliope/firststeps/5x5LED.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/5x5LED_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/5x5LED.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/5x5LED_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "New? Start Here!",
|
||||
"labelClass": "yellow small ribbon"
|
||||
@ -30,8 +30,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Radio",
|
||||
"url":"/calliope/firststeps/Radio",
|
||||
"description": "Find out how to use the radion function and how to send messages from one Calliope mini to another one",
|
||||
"imageUrl": "/docs/calliope/firststeps/Radio.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Radio_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Radio.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Radio_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "orange small ribbon"
|
||||
@ -40,8 +40,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Loops",
|
||||
"url":"/calliope/firststeps/Loops",
|
||||
"description": "Loops are important to be able to execute program instructions multiple times",
|
||||
"imageUrl": "/docs/calliope/firststeps/Loops.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Loops_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Loops.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Loops_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -50,8 +50,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Mathematics",
|
||||
"url":"/calliope/firststeps/Mathematics",
|
||||
"description": "The Calliope mini can become your little math helper",
|
||||
"imageUrl": "/docs/calliope/firststeps/Mathematics.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Mathematics_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Mathematics.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Mathematics_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -60,8 +60,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Inputs",
|
||||
"url":"/calliope/firststeps/Inputs",
|
||||
"description": "Use conditions for different actions",
|
||||
"imageUrl": "/docs/calliope/firststeps/Inputs.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Inputs_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Inputs.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Inputs_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -70,8 +70,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Sensors",
|
||||
"url":"/calliope/firststeps/Sensors",
|
||||
"description": "Measure temperature, light and orientation",
|
||||
"imageUrl": "/docs/calliope/firststeps/Sensors.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Sensors_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Sensors.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Sensors_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -80,8 +80,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Output",
|
||||
"url":"/calliope/firststeps/Output",
|
||||
"description": "Audio, light and motion",
|
||||
"imageUrl": "/docs/calliope/firststeps/Output.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Output_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Output.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Output_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -90,8 +90,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Decisions",
|
||||
"url":"/calliope/firststeps/Decisions",
|
||||
"description": "If..., then it happens... or it happens...",
|
||||
"imageUrl": "/docs/calliope/firststeps/Decisions.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Decisions_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Decisions.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Decisions_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
@ -100,8 +100,8 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Variables",
|
||||
"url":"/calliope/firststeps/Variables",
|
||||
"description": "A variable is not a static value, it’s what you determine it to be.",
|
||||
"imageUrl": "/docs/calliope/firststeps/Variables.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/Variables_L.jpg",
|
||||
"imageUrl": "/calliope/firststeps/Variables.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/Variables_L.jpg",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
"labelClass": "green small ribbon"
|
||||
|
@ -14,7 +14,7 @@ For example drag and drop some blocks and try your program on the Simulator with
|
||||
|
||||
Click the Download button in the editor. This will download a 'hex' file, which is a compact format of your program that your mini can read. Once the file has been downloaded, just copy it to your Calliope mini just like copying a file to a USB stick.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Introduction @unplugged
|
||||
@ -32,7 +32,7 @@ Be careful to insure that the ridge on the plug is facing upwards.
|
||||
|
||||
If the plug slides easily into the socket then you are attaching it correctly. Otherwise, turn the plug round and re-insert it into the socket. Slide it to "on“ and your Calliope mini is powered by the batteries.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Introduction @unplugged
|
||||
|
@ -10,7 +10,7 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Shop",
|
||||
"url":"https://shop.calliope.cc",
|
||||
"description": "You can get the mini at the official calliope store.",
|
||||
"imageUrl": "/docs/calliope/links/thumbnail_shop.gif",
|
||||
"imageUrl": "/calliope/links/thumbnail_shop.gif",
|
||||
"largeImageUrl": "",
|
||||
"label": "",
|
||||
"buttonLabel": "Open Calliope Shop",
|
||||
@ -19,7 +19,7 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Projects",
|
||||
"url":"https://calliope.cc/en/projekte",
|
||||
"description": "A collection of calliope mini projects",
|
||||
"imageUrl": "/docs/calliope/links/thumbnail_projects.gif",
|
||||
"imageUrl": "/calliope/links/thumbnail_projects.gif",
|
||||
"largeImageUrl": "",
|
||||
"label": "",
|
||||
"buttonLabel": "View Projects",
|
||||
@ -28,7 +28,7 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Teaching materials",
|
||||
"url":"https://calliope.cc/schulen/schulmaterial",
|
||||
"description": "",
|
||||
"imageUrl": "/docs/calliope/links/thumbnail_didactic_material.gif",
|
||||
"imageUrl": "/calliope/links/thumbnail_didactic_material.gif",
|
||||
"largeImageUrl": "",
|
||||
"label": "",
|
||||
"buttonLabel": "View",
|
||||
@ -37,7 +37,7 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Forum",
|
||||
"url":"https://forum.calliope.cc",
|
||||
"description": "Be a part of our comunity",
|
||||
"imageUrl": "/docs/calliope/links/thumbnail_community.gif",
|
||||
"imageUrl": "/calliope/links/thumbnail_community.gif",
|
||||
"largeImageUrl": "",
|
||||
"label": "",
|
||||
"buttonLabel": "Open Forum",
|
||||
|
@ -9,7 +9,7 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
"name": "Flashing Heart",
|
||||
"url":"/projects/flashing-heart",
|
||||
"description": "Make an animated flashing heart.",
|
||||
"imageUrl": "/docs/calliope/tutorials/01_flashing_heart.gif",
|
||||
"imageUrl": "/calliope/tutorials/01_flashing_heart.gif",
|
||||
"largeImageUrl": "",
|
||||
"cardType": "tutorial",
|
||||
"label": "",
|
||||
@ -17,57 +17,57 @@ Here are some cool tutorials to get you started with your @boardname@!
|
||||
}, {
|
||||
"name": "Name Tag",
|
||||
"description": "Scroll your name on the screen",
|
||||
"imageUrl": "/docs/calliope/tutorials/02_nametag.gif",
|
||||
"imageUrl": "/calliope/tutorials/02_nametag.gif",
|
||||
"url": "/projects/name-tag",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Smiley Buttons",
|
||||
"url":"/projects/smiley-buttons",
|
||||
"description": "Show different smiley images by pressing the buttons.",
|
||||
"imageUrl": "/docs/calliope/tutorials/03_smiley_button.gif",
|
||||
"imageUrl": "/calliope/tutorials/03_smiley_button.gif",
|
||||
"largeImageUrl": "",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Dice",
|
||||
"url":"/projects/dice",
|
||||
"description": "Shake the dice and see what number comes up!",
|
||||
"imageUrl": "/docs/calliope/tutorials/04_dice.gif",
|
||||
"imageUrl": "/calliope/tutorials/04_dice.gif",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Love Meter",
|
||||
"url":"/projects/love-meter",
|
||||
"description": "The @boardname@ is feeling the love, see how much!",
|
||||
"imageUrl":"/docs/calliope/tutorials/05_love_meter.gif",
|
||||
"imageUrl":"/calliope/tutorials/05_love_meter.gif",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Mini Chat",
|
||||
"url":"/projects/mini-chat",
|
||||
"description": "Build your own social network made of minis.",
|
||||
"imageUrl": "/docs/calliope/tutorials/06_mini_chat.gif",
|
||||
"imageUrl": "/calliope/tutorials/06_mini_chat.gif",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Rock Paper Scissors",
|
||||
"url":"/projects/rock-paper-scissors",
|
||||
"description": "Make the Rock-Paper-Scissors game on your @boardname@ and challenge your friends.",
|
||||
"imageUrl":"/docs/calliope/tutorials/07_stone_paper_scissors.gif",
|
||||
"imageUrl":"/calliope/tutorials/07_stone_paper_scissors.gif",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Coin Flipper",
|
||||
"url":"/projects/coin-flipper",
|
||||
"description": "Guess the coin toss and see if you're lucky.",
|
||||
"imageUrl": "/docs/calliope/tutorials/08_coin_flipper.gif",
|
||||
"imageUrl": "/calliope/tutorials/08_coin_flipper.gif",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Snap the dot",
|
||||
"url": "/projects/snap-the-dot",
|
||||
"description": "Use the game blocks to create a skill game",
|
||||
"imageUrl": "/docs/calliope/tutorials/09_snap_the_dot.gif",
|
||||
"imageUrl": "/calliope/tutorials/09_snap_the_dot.gif",
|
||||
"cardType": "tutorial"
|
||||
}, {
|
||||
"name": "Multi Dice",
|
||||
"url": "/projects/multi-dice",
|
||||
"description": "Compete with multiple dices",
|
||||
"imageUrl": "/docs/calliope/tutorials/10_multi_dice.gif",
|
||||
"imageUrl": "/calliope/tutorials/10_multi_dice.gif",
|
||||
"cardType": "tutorial"
|
||||
}
|
||||
]
|
||||
|
@ -50,10 +50,8 @@ This method of filling coordinate points, counting them, and using the differenc
|
||||
## Monte Carlo approximation of _pi_
|
||||
|
||||
```blocks
|
||||
let pir = 0
|
||||
let pid = 0
|
||||
let pi = 0
|
||||
let y = 0
|
||||
let pin = 0
|
||||
let x = 0
|
||||
let r2 = 0
|
||||
let r = 0
|
||||
@ -87,10 +85,7 @@ basic.forever(() => {
|
||||
// r * r * pi => inside / n ~= (r*r*pi) / (4*r*r) ~=
|
||||
// pi / 4 pi = inside / n * 4
|
||||
//
|
||||
pin = inside * 4
|
||||
// only integer arithmetic here...
|
||||
pid = pin / n
|
||||
pir = pin % n
|
||||
pi = (inside * 4) / n
|
||||
// show results
|
||||
basic.showLeds(`
|
||||
# # # # #
|
||||
@ -99,6 +94,6 @@ basic.forever(() => {
|
||||
. # . # .
|
||||
. # . . #
|
||||
`)
|
||||
basic.showString(" " + pid + "." + pir)
|
||||
basic.showString(" " + pi)
|
||||
})
|
||||
```
|
@ -5,18 +5,18 @@
|
||||
{
|
||||
"name": "First Steps",
|
||||
"url": "/calliope/firststeps",
|
||||
"imageUrl": "/docs/calliope/firststeps/connecting.jpg",
|
||||
"largeImageUrl": "/docs/calliope/firststeps/firstSteps.jpg"
|
||||
"imageUrl": "/calliope/firststeps/connecting.jpg",
|
||||
"largeImageUrl": "/calliope/firststeps/firstSteps.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Tutorials",
|
||||
"url": "/calliope/tutorials",
|
||||
"imageUrl": "/docs/calliope/tutorials/01_flashing_heart.gif"
|
||||
"imageUrl": "/calliope/tutorials/01_flashing_heart.gif"
|
||||
},
|
||||
{
|
||||
"name": "Calliope Links",
|
||||
"url": "/calliope/links",
|
||||
"imageUrl": "/docs/calliope/links/thumbnail_shop.gif"
|
||||
"imageUrl": "/calliope/links/thumbnail_shop.gif"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Let's create a coin flipping program to simulate a real coin toss. We'll use icon images to represent a ``heads`` or ``tails`` result.
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 1
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Let's turn the @boardname@ into a dice!
|
||||
(Want to learn how the accelerometer works? [Watch this video](https://youtu.be/byngcwjO51U)).
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 1 @fullscreen
|
||||
|
||||
|
@ -6,13 +6,13 @@ Learn how to use the LEDs and make a flashing heart!
|
||||
(Want to learn how lights work? [Watch this video](https://youtu.be/qqBmvHD5bCw)).
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 1 @fullscreen
|
||||
|
||||
Place the ``||basic:show leds||`` block in the ``||basic:forever||`` block and draw a heart.
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 2 @fullscreen
|
||||
|
||||
@ -39,7 +39,7 @@ basic.forever(function() {
|
||||
|
||||
Look at the virtual @boardname@, you should see the heart and your drawing blink on the screen.
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 4 @fullscreen
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Make a love meter, how sweet! The @boardname@ is feeling the love, then sometimes not so much!
|
||||
Tell everyone who you are. Show you name on the LEDs.
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 1
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## Introduction @unplugged
|
||||
|
||||

|
||||

|
||||
|
||||
Use the **radio** to send and receive messages with other @boardname@.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## Introduction @unplugged
|
||||
|
||||

|
||||

|
||||
|
||||
Build a multi-player dice game using the **radio**. The **radio** blocks let you send wireless messages between a @boardname@ and another @boardname@.
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
Tell everyone who you are. Show you name on the LEDs.
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 1 @fullscreen
|
||||
|
||||
@ -20,7 +20,7 @@ basic.forever(() => {
|
||||
|
||||
Look at the simulator and make sure it shows your name on the screen.
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 3 @fullscreen
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## Introduction @unplugged
|
||||
|
||||

|
||||

|
||||
|
||||
Use the accelerometer and the screen to build a **Rock Paper Scissors** game that you can play with your friends!
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
Code the buttons on the @boardname@ to show that it's happy or sad.
|
||||
(Want to learn how the buttons works? [Watch this video](https://youtu.be/t_Qujjd_38o)).
|
||||
|
||||

|
||||

|
||||
|
||||
## Step 1 @fullscreen
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## Introduction @unplugged
|
||||
|
||||

|
||||

|
||||
|
||||
Snap the dot is a game of skill where the player has to press **A** exactly when the dot reaches the center of the screen.
|
||||
|
||||
|
1
docs/static/icons/blocks.svg
vendored
Normal file
1
docs/static/icons/blocks.svg
vendored
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 1000 1000"><path class="st1" d="m219.11872 941.69081 577.03056 0c22.8432 0 41.38224-18.53952 41.38224-41.49264l0-204.70272c-7.39392-24.82944-28.58112-27.14688-48.44448-8.27664-1.7664 0-21.62928 24.38784-67.31472 24.38784-54.51408-1.656-98.98608-41.93376-107.26224-94.57152l-0.552 0c-0.432-3.864-0.432-25.16016 0-29.02272l0.552 0c8.27616-52.52736 52.74816-92.91648 107.26224-94.57152 45.68544 0 65.4384 24.38784 67.31472 24.38784 19.31136 18.31824 40.71984 13.90416 48.44448-8.05584l0.096-189.36382c0-19.20145-13.24224-36.30625-31.00896-40.94065-3.312 0.8832-179.76336 0-179.76336 0-43.47888 3.5328-58.70736-25.71216-34.54032-51.20352 0-1.76639 24.38784-21.62879 24.38784-67.31472-1.656-54.51361-42.04416-98.98561-94.57152-107.26225l0-0.552c-3.864-0.432-25.16064-0.432-29.02272 0l0 0.552c-52.52736 8.27664-92.91648 52.74864-94.68192 107.26225 0 45.68593 24.38784 65.43888 24.38784 67.31472 24.27744 25.49136 14.12496 53.52096-34.31952 51.20352 0 0-176.4528 0.8832-179.76336 0-17.87712 4.63681-31.11936 21.6288-31.11936 40.94065l0 579.7891c0 22.84272 18.53904 41.49264 41.49216 41.49264z"/></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
docs/static/icons/js.svg
vendored
Normal file
1
docs/static/icons/js.svg
vendored
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 1000 1000"><path class="st1" d="M843.77886 524.88744 880.276 501.83162 843.77886 478.86523c-17.00235-10.68208-30.88888-21.80904-41.21473-33.11451-9.88096-10.68206-18.15968-24.12333-24.65806-39.87966-6.85421-16.37895-11.75036-36.49708-14.5986-59.64157-3.0279-24.47957-4.53992-53.85527-4.53992-87.23694 0-34.8058-0.71245-60.79853-2.2264-79.49216-1.69206-21.72037-5.51915-37.92159-11.4832-49.49384-7.29949-14.06465-18.07062-23.94561-31.95715-29.46476-9.97002-3.916526-23.50072-6.854208-41.21512-8.81267-6.23121-0.89056-11.12736-3.740352-15.84501-9.524735-4.89614-5.964035-7.38854-15.311043-7.38854-27.862527 0-18.248344 3.82941-36.0518 49.84968-36.0518 28.30741 0 53.23225 5.607817 74.1515 16.735171 20.6517 10.949237 36.40803 26.171235 48.33612 46.556149 11.92847 20.384922 18.07062 44.241472 18.33779 71.035712 2.84979 158.1836 5.78593 189.8736 8.18966 199.93266 6.76518 28.04064 17.0019 49.40478 31.156 65.16073 12.72932 14.15371 28.21841 26.79424 46.02186 37.47631 12.90734 7.74439 22.25434 15.13294 27.95127 21.98715 1.603 1.87017 5.16331 8.10062 5.16331 24.65768 0 17.09139-5.34106 27.95158-17.35854 35.34012-26.97238 16.55706-46.37811 31.067-59.19637 44.33053-14.4209 14.86578-24.56869 33.47034-30.17683 55.19072-4.98481 19.40568-7.92251 46.73387-8.81267 83.40907-0.89056 34.44996-1.87018 77.53409-2.93885 129.25317-0.89056 41.92717-13.61976 74.24056-38.81139 98.89824-25.28105 24.65767-58.66273 36.67519-101.92497 36.67519-18.15968 0-31.60095-3.47319-39.79061-10.23717-6.8546-5.69688-10.05907-14.24277-10.05907-26.8833 0-8.01156 1.33584-14.95483 4.09464-21.2751 2.40451-5.43008 5.16331-9.43567 8.36779-11.92808 3.0279-2.31546 6.40931-3.6513 10.68206-4.18408 18.42647-2.49357 32.22434-5.60782 42.37208-9.70285 14.1541-5.78592 25.28106-16.82422 32.13527-31.86811 5.51915-11.92808 8.90173-27.86252 10.41529-48.42517 1.33584-17.89251 1.95924-43.08451 1.95924-76.82202 0.71244-47.26822 3.38412-84.3883 8.1006-110.38143 4.1837-23.58977 12.19526-43.88564 23.67845-60.44269 11.57224-16.82423 29.46475-32.9364 53.23226-47.89122zm-680.5 125.78114c2.49357 10.05907 5.34104 41.74907 8.18967 199.93305 0.27104 26.79424 6.49798 50.65079 18.33741 71.03571 11.83941 20.38492 27.68441 35.60691 48.33649 46.55615 20.91887 11.12697 45.84371 16.73517 74.15151 16.73517 46.02182 0 49.84968-17.80346 49.84968-36.05219 0-12.55148-2.49357-21.98716-7.38855-27.86213-4.71803-5.69727-9.61379-8.63495-15.845-9.52512-17.7144-1.95924-31.24511-4.89576-41.12606-8.81268-13.88692-5.51915-24.65767-15.40011-31.95716-29.46476-5.96443-11.57224-9.79191-27.68441-11.4832-49.49345-1.51395-18.78268-2.2264-44.7758-2.2264-79.49255 0-33.38128-1.51395-62.75698-4.53992-87.23693-2.93885-23.1445-7.83344-43.17319-14.68765-59.55253-6.49838-15.75594-14.7771-29.19758-24.65806-39.87966-10.4149-11.30508-24.21239-22.43243-41.21473-33.1145l-36.49708-22.96638 36.49708-23.05544c23.67844-14.95482 41.57095-31.06699 53.32132-47.89122 11.48318-16.55744 19.49474-36.85331 23.67843-60.44309 4.71803-25.99273 7.38856-63.20226 8.10061-110.38142 0-33.73751 0.62339-58.84007 1.95923-76.82164 1.51395-20.65209 4.89576-36.49708 10.41491-48.42556 6.85461-15.04387 17.98157-26.08218 32.04623-31.8681 10.05907-4.09464 23.9456-7.299501 42.37245-9.702847 4.27275-0.534336 7.65534-1.870176 10.68207-4.183696 3.20602-2.493568 6.05311-6.498382 8.3674-11.928477 2.84979-6.409315 4.18408-13.352592 4.18408-21.364145 0-12.640529-3.20602-21.186033-10.05907-26.883294-8.27872-6.765158-21.63132-10.236793-39.87967-10.236793-43.35168 0-76.73296 12.017139-101.92497 36.675192-25.19201 24.657677-37.92121 56.97067-38.81138 98.89785-1.06867 51.71908-2.04829 94.8036-2.93885 129.25317-0.97962 36.6752-3.82941 64.00339-8.81267 83.40908-5.60821 21.72036-15.75594 40.32494-30.17682 55.19071-12.9077 13.26392-32.31339 27.77347-59.285742 44.33092-12.017139 7.38816-17.358176 18.24835-17.358176 35.33974 0 16.64611 3.651296 22.78827 5.162925 24.65767 5.697261 6.76555 15.043878 14.15371 27.951586 21.98754 17.803457 10.68207 33.292227 23.32222 46.021807 37.47593 14.24277 15.84539 24.3909 37.12048 31.24511 65.16072z" style="stroke-width:11;stroke:#000"/></svg>
|
After Width: | Height: | Size: 4.1 KiB |
1
docs/static/icons/py.svg
vendored
Normal file
1
docs/static/icons/py.svg
vendored
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 1000 1000" style="clip-rule:evenodd;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;version:1.1"><path d="M503.415 730.842l-1.25 28.765 228.868 2.501c0 0 0.553 83.963 0 96.3 -3.535 78.874-47.389 95.999-128.817 110.057 -81.427 14.057-171.498 5.077-205.105 0 -108.896-16.451-121.313-112.558-121.313-112.558 0 0-0.481-204.44 0-240.124 0.481-35.684 45.171-100.562 101.302-102.553 71.167-2.524 194.071 2.041 252.63 0 58.56-2.04 130.375-58.917 132.569-132.568 2.193-73.652 1.25-115.06 1.25-115.06l90.047 2.502c0 0 119.183-4.794 121.312 246.377 1.989 234.636-179.876 216.383-180.093 216.361l-291.4 0Zm129.442 173.84c-23.814 0-43.147-19.334-43.147-43.147 0-23.814 19.333-43.148 43.147-43.148 23.814 0 43.147 19.334 43.147 43.148 0 23.813-19.333 43.147-43.147 43.147Zm-424.791-641.549l291.4 0 1.25-28.765 -228.868-2.501c0 0-0.552-83.963 0-96.3 3.535-78.874 47.389-95.999 128.817-110.057 81.427-14.057 171.499-5.077 205.106 0 108.895 16.451 121.312 112.558 121.312 112.558 0 0 0.481 204.44 0 240.124 -0.481 35.684-45.171 100.562-101.302 102.553 -71.167 2.524-194.071-2.041-252.63 0 -58.56 2.04-130.375 58.917-132.569 132.568 -2.193 73.651-1.25 115.059-1.25 115.059l-90.047-2.501c0 0-119.183 4.794-121.312-246.377 -1.99-234.776 180.093-216.361 180.093-216.361Zm161.958-173.84c23.814 0 43.147 19.334 43.147 43.147 0 23.814-19.333 43.148-43.147 43.148 -23.814 0-43.147-19.334-43.147-43.148 0-23.813 19.333-43.147 43.147-43.147Z"/></svg>
|
After Width: | Height: | Size: 1.5 KiB |
@ -897,7 +897,7 @@ function webUsbPairDialogAsync(confirmAsync: (options: any) => Promise<number>):
|
||||
<div className="ui header">{lf("First time here?")}</div>
|
||||
<strong className="ui small">{lf("You must have version 0249 or above of the firmware")}</strong>
|
||||
<div className="image">
|
||||
<img className="ui image" src="./docs/static/download/firmware.png" />
|
||||
<img className="ui image" src="./static/download/firmware.png" />
|
||||
</div>
|
||||
<a href={`${docUrl}/webusb/troubleshoot`} target="_blank">{lf("Check your firmware version here and update if needed")}</a>
|
||||
</div>
|
||||
@ -909,7 +909,7 @@ function webUsbPairDialogAsync(confirmAsync: (options: any) => Promise<number>):
|
||||
<div className="column">
|
||||
<div className="ui">
|
||||
<div className="image">
|
||||
<img className="ui medium rounded image" src="./docs/static/download/connect.png" />
|
||||
<img className="ui medium rounded image" src="./static/download/connect.png" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="description">
|
||||
@ -924,7 +924,7 @@ function webUsbPairDialogAsync(confirmAsync: (options: any) => Promise<number>):
|
||||
<div className="column">
|
||||
<div className="ui">
|
||||
<div className="image">
|
||||
<img className="ui medium rounded image" src="./docs/static/download/pair.png" />
|
||||
<img className="ui medium rounded image" src="./static/download/pair.png" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="description">
|
||||
@ -990,7 +990,7 @@ function showUploadInstructionsAsync(fn: string, url: string, confirmAsync: (opt
|
||||
<div className="column">
|
||||
<div className="ui">
|
||||
<div className="image">
|
||||
<img className="ui medium rounded image" src="./docs/static/download/connect.png" />
|
||||
<img className="ui medium rounded image" src="./static/download/connect.png" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="description">
|
||||
@ -1005,7 +1005,7 @@ function showUploadInstructionsAsync(fn: string, url: string, confirmAsync: (opt
|
||||
<div className="column">
|
||||
<div className="ui">
|
||||
<div className="image">
|
||||
<img className="ui medium rounded image" src="./docs/static/download/transfer.png" />
|
||||
<img className="ui medium rounded image" src="./static/download/transfer.png" />
|
||||
</div>
|
||||
<div className="content">
|
||||
<div className="description">
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"masterPicture": "docs/static/microbit.simplified.svg",
|
||||
"iconsPath": "/docs/static/icons",
|
||||
"iconsPath": "/static/icons",
|
||||
"design": {
|
||||
"ios": {
|
||||
"pictureAspect": "backgroundAndMargin",
|
||||
|
@ -195,11 +195,17 @@
|
||||
"String.indexOf|param|start": "optional start index for the search",
|
||||
"String.isEmpty": "Returns a value indicating if the string is empty",
|
||||
"String.length": "Returns the length of a String object.",
|
||||
"String.replace": "Return the current string with the first occurence of toReplace\nreplaced with the replacer\n\n\nor a function that accepts the substring and returns the replacement string.",
|
||||
"String.replaceAll": "Return the current string with each occurence of toReplace\nreplaced with the replacer\n\n\nor a function that accepts the substring and returns the replacement string.",
|
||||
"String.replaceAll|param|replacer": "either the string that replaces toReplace in the current string,",
|
||||
"String.replaceAll|param|toReplace": "the substring to replace in the current string",
|
||||
"String.replace|param|replacer": "either the string that replaces toReplace in the current string,",
|
||||
"String.replace|param|toReplace": "the substring to replace in the current string",
|
||||
"String.slice": "Return a substring of the current string.",
|
||||
"String.slice|param|end": "one-past-last character index",
|
||||
"String.slice|param|start": "first character index; can be negative from counting from the end, eg:0",
|
||||
"String.split": "Splits the string according to the separators",
|
||||
"String.split|param|separator": "@param limit ",
|
||||
"String.split|param|separator": "@param limit",
|
||||
"String.substr": "Return a substring of the current string.",
|
||||
"String.substr|param|length": "number of characters to extract",
|
||||
"String.substr|param|start": "first character index; can be negative from counting from the end, eg:0",
|
||||
|
@ -27,6 +27,7 @@ namespace motors {
|
||||
*/
|
||||
//% blockId=motor_on block="motor on at %percent"
|
||||
//% parts=dcmotor weight=90 blockGap=8
|
||||
//% percent.shadow="speedPicker"
|
||||
void motorPower(int power) {
|
||||
uBit.soundmotor.motorOn(power);
|
||||
}
|
||||
@ -48,6 +49,7 @@ namespace motors {
|
||||
* Controls two motors attached to the board. Switches to dual-motor mode!
|
||||
*/
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent"
|
||||
//% percent.shadow="speedPicker"
|
||||
//% weight=80
|
||||
void dualMotorPower(Motor motor, int duty_percent) {
|
||||
switch(motor) {
|
||||
|
@ -125,13 +125,13 @@ namespace pins {
|
||||
* Pin P1
|
||||
*/
|
||||
//% fixedInstance whenUsed
|
||||
export const P1: PwmPin = new MicrobitPin(DigitalPin.P1);
|
||||
export const P1: AnalogInPin = new MicrobitPin(DigitalPin.P1);
|
||||
|
||||
/**
|
||||
* Pin P2
|
||||
*/
|
||||
//% fixedInstance whenUsed
|
||||
export const P2: PwmPin = new MicrobitPin(DigitalPin.P2);
|
||||
export const P2: AnalogInPin = new MicrobitPin(DigitalPin.P2);
|
||||
|
||||
/**
|
||||
* Pin P3
|
||||
|
4
libs/core/shims.d.ts
vendored
4
libs/core/shims.d.ts
vendored
@ -599,7 +599,8 @@ declare namespace motors {
|
||||
* @param power %percent of power sent to the motor. Negative power goes backward. eg: 50
|
||||
*/
|
||||
//% blockId=motor_on block="motor on at %percent"
|
||||
//% parts=dcmotor weight=90 blockGap=8 shim=motors::motorPower
|
||||
//% parts=dcmotor weight=90 blockGap=8
|
||||
//% percent.shadow="speedPicker" shim=motors::motorPower
|
||||
function motorPower(power: int32): void;
|
||||
|
||||
/**
|
||||
@ -613,6 +614,7 @@ declare namespace motors {
|
||||
* Controls two motors attached to the board. Switches to dual-motor mode!
|
||||
*/
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent"
|
||||
//% percent.shadow="speedPicker"
|
||||
//% weight=80 shim=motors::dualMotorPower
|
||||
function dualMotorPower(motor: Motor, duty_percent: int32): void;
|
||||
}
|
||||
|
234
package-lock.json
generated
234
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pxt-calliope",
|
||||
"version": "2.1.33",
|
||||
"version": "2.1.46",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -31,6 +31,11 @@
|
||||
"integrity": "sha512-CSf9YWJdX1DkTNu9zcNtdCcn6hkRtB5ILjbhRId4ZOQqx30fXmdecuaXhugQL6eyrhuXtaHJ7PHI+Vm7k9ZJjg==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/mime-types": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/mime-types/-/mime-types-2.1.0.tgz",
|
||||
"integrity": "sha1-nKUs2jY/aZxpRmwqbM2q2RPqenM="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "8.0.53",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.53.tgz",
|
||||
@ -61,9 +66,9 @@
|
||||
}
|
||||
},
|
||||
"@types/w3c-web-usb": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/w3c-web-usb/-/w3c-web-usb-1.0.3.tgz",
|
||||
"integrity": "sha512-XilIvno46lLRyOj/1G5z88M6iimYs3dr3LNdSN9UxSWifytKsBMmRtAi53X3j0ThrrqyVotqrSeaYv9a0I131w=="
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/w3c-web-usb/-/w3c-web-usb-1.0.4.tgz",
|
||||
"integrity": "sha512-aaOB3EL5WCWBBOYX7W1MKuzspOM9ZJI9s3iziRVypr1N+QyvIgXzCM4lm1iiOQ1VFzZioUPX9bsa23myCbKK4A=="
|
||||
},
|
||||
"@types/web-bluetooth": {
|
||||
"version": "0.0.4",
|
||||
@ -115,11 +120,19 @@
|
||||
"integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8="
|
||||
},
|
||||
"agent-base": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz",
|
||||
"integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==",
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
|
||||
"integrity": "sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g=="
|
||||
},
|
||||
"ajv": {
|
||||
"version": "6.11.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz",
|
||||
"integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==",
|
||||
"requires": {
|
||||
"es6-promisify": "^5.0.0"
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
"json-schema-traverse": "^0.4.1",
|
||||
"uri-js": "^4.2.2"
|
||||
}
|
||||
},
|
||||
"alphanum-sort": {
|
||||
@ -147,9 +160,9 @@
|
||||
}
|
||||
},
|
||||
"applicationinsights-js": {
|
||||
"version": "1.0.20",
|
||||
"resolved": "https://registry.npmjs.org/applicationinsights-js/-/applicationinsights-js-1.0.20.tgz",
|
||||
"integrity": "sha512-vN6fEv2fNPZtw76/mv5OJ44cTP/VzSDahdXVIGnRB5Apnf2/9PIl4IyWpwS9biG53I1sWvkw83RjdrAnsIKoRQ=="
|
||||
"version": "1.0.21",
|
||||
"resolved": "https://registry.npmjs.org/applicationinsights-js/-/applicationinsights-js-1.0.21.tgz",
|
||||
"integrity": "sha512-AUkkm8OWfCgbBuMe7kSAwUFpc1e2y+WisieQx/VgCS+BT/0AubmnGZ1yQ+zkENVriM9qArKNjLqTQp38x995wg=="
|
||||
},
|
||||
"aproba": {
|
||||
"version": "1.2.0",
|
||||
@ -355,9 +368,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"readable-stream": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
|
||||
"integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
|
||||
"version": "3.5.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.5.0.tgz",
|
||||
"integrity": "sha512-gSz026xs2LfxBPudDuI41V1lka8cxg64E66SGe78zJlsUofOg/yqwezdIcdfwik6B4h8LFmWPA9ef9X3FiNFLA==",
|
||||
"requires": {
|
||||
"inherits": "^2.0.3",
|
||||
"string_decoder": "^1.1.1",
|
||||
@ -402,7 +415,6 @@
|
||||
"version": "2.10.1",
|
||||
"resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz",
|
||||
"integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=",
|
||||
"optional": true,
|
||||
"requires": {
|
||||
"hoek": "2.x.x"
|
||||
}
|
||||
@ -668,9 +680,9 @@
|
||||
}
|
||||
},
|
||||
"caniuse-db": {
|
||||
"version": "1.0.30001015",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001015.tgz",
|
||||
"integrity": "sha512-+Fqdu7tOxSD0HDs922QPxseHlwnUzdjLC1Oq32HZ1/LWrMfYNt8JaUWnoiIAR+G4fRzM3tdgc4Lrqo5Nx76UsQ=="
|
||||
"version": "1.0.30001025",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001025.tgz",
|
||||
"integrity": "sha512-HtUBOYgagTFMOa8/OSVkXbDS/YiByZZoi4H+ksKgoDfNmMVoodxnH373bXleumM1kg1IXvLspLMKIS7guWEBhg=="
|
||||
},
|
||||
"caseless": {
|
||||
"version": "0.12.0",
|
||||
@ -707,18 +719,18 @@
|
||||
}
|
||||
},
|
||||
"chokidar": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz",
|
||||
"integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==",
|
||||
"version": "3.3.1",
|
||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.1.tgz",
|
||||
"integrity": "sha512-4QYCEWOcK3OJrxwvyyAOxFuhpvOVCYkr33LPfFNBjAD/w3sEzWsp2BUOkI4l9bHvWioAd0rc6NlHUOEaWkTeqg==",
|
||||
"requires": {
|
||||
"anymatch": "~3.1.1",
|
||||
"braces": "~3.0.2",
|
||||
"fsevents": "~2.1.1",
|
||||
"fsevents": "~2.1.2",
|
||||
"glob-parent": "~5.1.0",
|
||||
"is-binary-path": "~2.1.0",
|
||||
"is-glob": "~4.0.1",
|
||||
"normalize-path": "~3.0.0",
|
||||
"readdirp": "~3.2.0"
|
||||
"readdirp": "~3.3.0"
|
||||
}
|
||||
},
|
||||
"chownr": {
|
||||
@ -1226,9 +1238,9 @@
|
||||
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
|
||||
},
|
||||
"electron-to-chromium": {
|
||||
"version": "1.3.322",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz",
|
||||
"integrity": "sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA=="
|
||||
"version": "1.3.345",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.345.tgz",
|
||||
"integrity": "sha512-f8nx53+Z9Y+SPWGg3YdHrbYYfIJAtbUjpFfW4X1RwTZ94iUG7geg9tV8HqzAXX7XTNgyWgAFvce4yce8ZKxKmg=="
|
||||
},
|
||||
"elliptic": {
|
||||
"version": "6.5.2",
|
||||
@ -1334,19 +1346,6 @@
|
||||
"prr": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"es6-promise": {
|
||||
"version": "4.2.8",
|
||||
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
|
||||
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
|
||||
},
|
||||
"es6-promisify": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz",
|
||||
"integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=",
|
||||
"requires": {
|
||||
"es6-promise": "^4.0.3"
|
||||
}
|
||||
},
|
||||
"escape-html": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
||||
@ -1408,9 +1407,9 @@
|
||||
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
|
||||
},
|
||||
"fast-deep-equal": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz",
|
||||
"integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk="
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
|
||||
"integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA=="
|
||||
},
|
||||
"fast-json-stable-stringify": {
|
||||
"version": "2.1.0",
|
||||
@ -1497,9 +1496,9 @@
|
||||
"integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg=="
|
||||
},
|
||||
"follow-redirects": {
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.9.0.tgz",
|
||||
"integrity": "sha512-CRcPzsSIbXyVDl0QI01muNDu69S8trU4jArW9LpOt2WtC6LyUJetcIrmfHsRBx7/Jb6GHJUiuqyYxPooFfNt6A==",
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.10.0.tgz",
|
||||
"integrity": "sha512-4eyLK6s6lH32nOvLLwlIOnr9zrL8Sm+OvW4pVTJNoXeGzYIkHVf+pADQi+OJ0E67hiuSLezPVPyBcIZO50TmmQ==",
|
||||
"requires": {
|
||||
"debug": "^3.0.0"
|
||||
},
|
||||
@ -1768,8 +1767,7 @@
|
||||
"hoek": {
|
||||
"version": "2.16.3",
|
||||
"resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
|
||||
"integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=",
|
||||
"optional": true
|
||||
"integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0="
|
||||
},
|
||||
"html-comment-regex": {
|
||||
"version": "1.1.2",
|
||||
@ -1832,18 +1830,18 @@
|
||||
"integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM="
|
||||
},
|
||||
"https-proxy-agent": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz",
|
||||
"integrity": "sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==",
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz",
|
||||
"integrity": "sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==",
|
||||
"requires": {
|
||||
"agent-base": "^4.3.0",
|
||||
"debug": "^3.1.0"
|
||||
"agent-base": "5",
|
||||
"debug": "4"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "3.2.6",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
|
||||
"integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
|
||||
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
|
||||
"requires": {
|
||||
"ms": "^2.1.1"
|
||||
}
|
||||
@ -2135,11 +2133,6 @@
|
||||
"useragent": "2.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"mime": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz",
|
||||
"integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA=="
|
||||
},
|
||||
"rimraf": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
|
||||
@ -2321,9 +2314,9 @@
|
||||
"integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg=="
|
||||
},
|
||||
"math-expression-evaluator": {
|
||||
"version": "1.2.17",
|
||||
"resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz",
|
||||
"integrity": "sha1-3oGf282E3M2PrlnGrreWFbnSZqw="
|
||||
"version": "1.2.22",
|
||||
"resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.2.22.tgz",
|
||||
"integrity": "sha512-L0j0tFVZBQQLeEjmWOvDLoRciIY8gQGWahvkztXUal8jH8R5Rlqo9GCvgqvXcy9LQhEWdQCVvzqAbxgYNt4blQ=="
|
||||
},
|
||||
"md5.js": {
|
||||
"version": "1.3.5",
|
||||
@ -2349,6 +2342,11 @@
|
||||
"brorand": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"mime": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz",
|
||||
"integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA=="
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.42.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.42.0.tgz",
|
||||
@ -2502,9 +2500,9 @@
|
||||
"integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
|
||||
},
|
||||
"node-abi": {
|
||||
"version": "2.13.0",
|
||||
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.13.0.tgz",
|
||||
"integrity": "sha512-9HrZGFVTR5SOu3PZAnAY2hLO36aW1wmA+FDsVkr85BTST32TLCA1H/AEcatVRAsWLyXS3bqUDYCAjq5/QGuSTA==",
|
||||
"version": "2.14.0",
|
||||
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.14.0.tgz",
|
||||
"integrity": "sha512-y54KGgEOHnRHlGQi7E5UiryRkH8bmksmQLj/9iLAjoje743YS+KaKB/sDYXgqtT0J16JT3c3AYJZNI98aU/kYg==",
|
||||
"requires": {
|
||||
"semver": "^5.4.1"
|
||||
}
|
||||
@ -2615,9 +2613,9 @@
|
||||
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
|
||||
},
|
||||
"pako": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz",
|
||||
"integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw=="
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
|
||||
"integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
|
||||
},
|
||||
"parents": {
|
||||
"version": "1.0.1",
|
||||
@ -2698,10 +2696,15 @@
|
||||
"resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
|
||||
"integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA="
|
||||
},
|
||||
"performance-now": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
|
||||
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
|
||||
},
|
||||
"picomatch": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.1.1.tgz",
|
||||
"integrity": "sha512-OYMyqkKzK7blWO/+XZYP6w8hH0LDvkBvdvKukti+7kqYFCiEAk+gI3DWnryapc0Dau05ugGTy0foQ6mqn4AHYA=="
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.1.tgz",
|
||||
"integrity": "sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA=="
|
||||
},
|
||||
"pngjs": {
|
||||
"version": "3.4.0",
|
||||
@ -3415,9 +3418,9 @@
|
||||
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM="
|
||||
},
|
||||
"psl": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.6.0.tgz",
|
||||
"integrity": "sha512-SYKKmVel98NCOYXpkwUqZqh0ahZeeKfmisiLIcEZdsb+WbLv02g/dI5BUmZnIyOe7RzZtLax81nnb2HbvC2tzA=="
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.7.0.tgz",
|
||||
"integrity": "sha512-5NsSEDv8zY70ScRnOTn7bK7eanl2MvFrOrS/R6x+dBt5g1ghnj9Zv90kO8GwT8gxcu2ANyFprnFYB85IogIJOQ=="
|
||||
},
|
||||
"public-encrypt": {
|
||||
"version": "4.0.3",
|
||||
@ -3447,14 +3450,16 @@
|
||||
"integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
|
||||
},
|
||||
"puppeteer": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-2.0.0.tgz",
|
||||
"integrity": "sha512-t3MmTWzQxPRP71teU6l0jX47PHXlc4Z52sQv4LJQSZLq1ttkKS2yGM3gaI57uQwZkNaoGd0+HPPMELZkcyhlqA==",
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-2.1.0.tgz",
|
||||
"integrity": "sha512-PC4oKMtwAElo8YtS/cYnk2/dew/3TonsGKKzjpFLWwkhBCteFsOZCVOXTt2QlP6w53mH0YsJE+fPLPzOW+DCug==",
|
||||
"requires": {
|
||||
"@types/mime-types": "^2.1.0",
|
||||
"debug": "^4.1.0",
|
||||
"extract-zip": "^1.6.6",
|
||||
"https-proxy-agent": "^3.0.0",
|
||||
"https-proxy-agent": "^4.0.0",
|
||||
"mime": "^2.0.3",
|
||||
"mime-types": "^2.1.25",
|
||||
"progress": "^2.0.1",
|
||||
"proxy-from-env": "^1.0.0",
|
||||
"rimraf": "^2.6.1",
|
||||
@ -3469,11 +3474,6 @@
|
||||
"ms": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"mime": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz",
|
||||
"integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA=="
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||
@ -3498,18 +3498,18 @@
|
||||
}
|
||||
},
|
||||
"pxt-common-packages": {
|
||||
"version": "6.16.31",
|
||||
"resolved": "https://registry.npmjs.org/pxt-common-packages/-/pxt-common-packages-6.16.31.tgz",
|
||||
"integrity": "sha512-mBgAEyPhek0YR9brj6B4pMLXWIALsD8gLvwxu0yBgIRkVkPKwN2zz1ePO9QwIz7sGt2d4zXzibcghKdgJJywjA==",
|
||||
"version": "6.18.4",
|
||||
"resolved": "https://registry.npmjs.org/pxt-common-packages/-/pxt-common-packages-6.18.4.tgz",
|
||||
"integrity": "sha512-23/rrWOaeMfPYHzZaKkcC6ycYcmubuRSCbYQM9ehNVMy6NXNAln/khJQVjTpjXdz3gAxkUu5V0+lUkZrwlGtog==",
|
||||
"requires": {
|
||||
"@jacdac/jacdac-ts": "^0.0.9",
|
||||
"pxt-core": "^5.24.8"
|
||||
}
|
||||
},
|
||||
"pxt-core": {
|
||||
"version": "5.30.17",
|
||||
"resolved": "https://registry.npmjs.org/pxt-core/-/pxt-core-5.30.17.tgz",
|
||||
"integrity": "sha512-5lZEauuMnY10N9nxYIWsFmBW9pRv+IHGOybvmpuoVi3VuCKJpP1fjlIvAAQQCmv8L+R0W2MFdFE3nBtWNdU9FA==",
|
||||
"version": "5.33.3",
|
||||
"resolved": "https://registry.npmjs.org/pxt-core/-/pxt-core-5.33.3.tgz",
|
||||
"integrity": "sha512-FxNBdpXjYxKJHscV3k38R4d+/Koh9TbNDbekpSg5OxqDIGK6/AAWWFEYwxb6YFqLWPUvXFjUAyAZPtRZmB6Lxg==",
|
||||
"requires": {
|
||||
"applicationinsights-js": "^1.0.20",
|
||||
"bluebird": "3.5.1",
|
||||
@ -3640,9 +3640,9 @@
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "2.3.6",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
|
||||
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
|
||||
"version": "2.3.7",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
||||
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.3",
|
||||
@ -3654,11 +3654,11 @@
|
||||
}
|
||||
},
|
||||
"readdirp": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz",
|
||||
"integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==",
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.3.0.tgz",
|
||||
"integrity": "sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ==",
|
||||
"requires": {
|
||||
"picomatch": "^2.0.4"
|
||||
"picomatch": "^2.0.7"
|
||||
}
|
||||
},
|
||||
"reduce-css-calc": {
|
||||
@ -3713,17 +3713,6 @@
|
||||
"uuid": "^3.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": {
|
||||
"version": "6.10.2",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz",
|
||||
"integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==",
|
||||
"requires": {
|
||||
"fast-deep-equal": "^2.0.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
"json-schema-traverse": "^0.4.1",
|
||||
"uri-js": "^4.2.2"
|
||||
}
|
||||
},
|
||||
"assert-plus": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
|
||||
@ -3773,11 +3762,6 @@
|
||||
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
|
||||
"integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
|
||||
},
|
||||
"performance-now": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
|
||||
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.5.2",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
|
||||
@ -3800,9 +3784,9 @@
|
||||
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.13.1",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz",
|
||||
"integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==",
|
||||
"version": "1.15.0",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.0.tgz",
|
||||
"integrity": "sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==",
|
||||
"requires": {
|
||||
"path-parse": "^1.0.6"
|
||||
}
|
||||
@ -4282,9 +4266,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"readable-stream": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
|
||||
"integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
|
||||
"version": "3.5.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.5.0.tgz",
|
||||
"integrity": "sha512-gSz026xs2LfxBPudDuI41V1lka8cxg64E66SGe78zJlsUofOg/yqwezdIcdfwik6B4h8LFmWPA9ef9X3FiNFLA==",
|
||||
"requires": {
|
||||
"inherits": "^2.0.3",
|
||||
"string_decoder": "^1.1.1",
|
||||
@ -4393,9 +4377,9 @@
|
||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
|
||||
},
|
||||
"typescript": {
|
||||
"version": "2.6.1",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.1.tgz",
|
||||
"integrity": "sha1-7znN6ierrAtQAkLWcmq5DgyEZjE=",
|
||||
"version": "3.7.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz",
|
||||
"integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==",
|
||||
"dev": true
|
||||
},
|
||||
"uglify-js": {
|
||||
@ -4542,9 +4526,9 @@
|
||||
"integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ=="
|
||||
},
|
||||
"vendors": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz",
|
||||
"integrity": "sha512-fOi47nsJP5Wqefa43kyWSg80qF+Q3XA6MUkgi7Hp1HQaKDQW4cQrK2D0P7mmbFtsV1N89am55Yru/nyEwRubcw=="
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz",
|
||||
"integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w=="
|
||||
},
|
||||
"verror": {
|
||||
"version": "1.10.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pxt-calliope",
|
||||
"version": "2.1.33",
|
||||
"version": "2.1.46",
|
||||
"description": "micro:bit target for Microsoft MakeCode (PXT)",
|
||||
"keywords": [
|
||||
"JavaScript",
|
||||
@ -34,7 +34,6 @@
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/bluebird": "2.0.33",
|
||||
"@types/jquery": "3.2.16",
|
||||
"@types/marked": "0.3.0",
|
||||
"@types/node": "8.0.53",
|
||||
"@types/react": "16.0.25",
|
||||
@ -43,10 +42,10 @@
|
||||
"less": "2.7.3",
|
||||
"react": "16.8.3",
|
||||
"semantic-ui-less": "2.2.14",
|
||||
"typescript": "2.6.1"
|
||||
"typescript": "^3.7.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"pxt-common-packages": "6.18.2",
|
||||
"pxt-core": "5.31.8"
|
||||
"pxt-common-packages": "6.18.4",
|
||||
"pxt-core": "5.33.5"
|
||||
}
|
||||
}
|
||||
|
@ -419,7 +419,9 @@
|
||||
"simGifTransparent": "rgba(0,0,0,0)",
|
||||
"simGifMaxFrames": 44,
|
||||
"simScreenshotMaxUriLength": 300000,
|
||||
"importExtensionFiles": true
|
||||
"importExtensionFiles": true,
|
||||
"githubEditor": true,
|
||||
"tutorialBlocksDiff": true
|
||||
},
|
||||
"queryVariants": {
|
||||
"hidemenu": {
|
||||
|
@ -61,7 +61,7 @@ namespace pxsim.pins {
|
||||
let pin = getPin(pinId);
|
||||
if (!pin) return;
|
||||
pin.mode = PinFlags.Analog | PinFlags.Output;
|
||||
pin.value = value ? 1 : 0;
|
||||
pin.value = value ? value : 0;
|
||||
runtime.queueDisplayUpdate();
|
||||
}
|
||||
|
||||
|
@ -3,4 +3,9 @@ namespace pxsim.basic {
|
||||
board().rgbLedState = c;
|
||||
runtime.queueDisplayUpdate()
|
||||
}
|
||||
|
||||
export function turnRgbLedOff() {
|
||||
board().rgbLedState = 0;
|
||||
runtime.queueDisplayUpdate()
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@
|
||||
"newLine": "LF",
|
||||
"sourceMap": false,
|
||||
"lib": ["dom", "dom.iterable", "scripthost", "es6"],
|
||||
"types": ["jquery", "bluebird"],
|
||||
"types": ["bluebird"],
|
||||
"typeRoots": ["../node_modules/@types"]
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -128,7 +128,7 @@ namespace pxsim.visuals {
|
||||
this.canvas.appendChild(pixel.el);
|
||||
}
|
||||
let color = colors[i];
|
||||
pixel.setRgb(color);
|
||||
pixel.setRgb([color[0], color[1], color[2]]);
|
||||
}
|
||||
|
||||
//show the canvas if it's hidden
|
||||
|
Reference in New Issue
Block a user