Compare commits
21 Commits
v2.1.40
...
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 |
@ -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"
|
||||
}
|
||||
]
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
157
package-lock.json
generated
157
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pxt-calliope",
|
||||
"version": "2.1.40",
|
||||
"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",
|
||||
@ -115,19 +120,16 @@
|
||||
"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==",
|
||||
"requires": {
|
||||
"es6-promisify": "^5.0.0"
|
||||
}
|
||||
"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.10.2",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz",
|
||||
"integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==",
|
||||
"version": "6.11.0",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz",
|
||||
"integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==",
|
||||
"requires": {
|
||||
"fast-deep-equal": "^2.0.1",
|
||||
"fast-deep-equal": "^3.1.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
"json-schema-traverse": "^0.4.1",
|
||||
"uri-js": "^4.2.2"
|
||||
@ -158,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",
|
||||
@ -366,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",
|
||||
@ -413,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"
|
||||
}
|
||||
@ -679,9 +680,9 @@
|
||||
}
|
||||
},
|
||||
"caniuse-db": {
|
||||
"version": "1.0.30001019",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001019.tgz",
|
||||
"integrity": "sha512-AdQItnPLQ32qEWPAfp3lGIYXxjbHOtcabhmvqEv831kc8WyYdibpdnnUu+gQXxEwDf1Job597aCbqf+EYAnuTA=="
|
||||
"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",
|
||||
@ -1237,9 +1238,9 @@
|
||||
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
|
||||
},
|
||||
"electron-to-chromium": {
|
||||
"version": "1.3.328",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.328.tgz",
|
||||
"integrity": "sha512-x4XefnFxDxFwaQ01d/pppJP9meWhOIJ/gtI6/4jqkpsadq79uL7NYSaX64naLmJqvzUBjSrO3IM2+1b/W9KdPg=="
|
||||
"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",
|
||||
@ -1345,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",
|
||||
@ -1419,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",
|
||||
@ -1508,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"
|
||||
},
|
||||
@ -1779,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",
|
||||
@ -1843,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"
|
||||
}
|
||||
@ -2327,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",
|
||||
@ -2513,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"
|
||||
}
|
||||
@ -2626,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",
|
||||
@ -3463,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",
|
||||
@ -3509,18 +3498,18 @@
|
||||
}
|
||||
},
|
||||
"pxt-common-packages": {
|
||||
"version": "6.18.2",
|
||||
"resolved": "https://registry.npmjs.org/pxt-common-packages/-/pxt-common-packages-6.18.2.tgz",
|
||||
"integrity": "sha512-aB89uhSaNcT3SA42mMiCh8miNopm1zWBZTHkVcVRL7/qOiZXqkJCArpBEwiFZbnS8m+DLjUEHKF+yiF2keQppA==",
|
||||
"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.31.8",
|
||||
"resolved": "https://registry.npmjs.org/pxt-core/-/pxt-core-5.31.8.tgz",
|
||||
"integrity": "sha512-9+x7LGHER1C1X67G1F6VSSG1xpSDtuF5NoWVbel3zC7v/wzv2zHjn+CE4R2Mj4DM5fGp39vtfcTXKbPp/Kec8w==",
|
||||
"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",
|
||||
@ -3795,9 +3784,9 @@
|
||||
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
|
||||
},
|
||||
"resolve": {
|
||||
"version": "1.14.2",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.14.2.tgz",
|
||||
"integrity": "sha512-EjlOBLBO1kxsUxsKjLt7TAECyKW6fOh1VRkykQkKGzcBbjjPIxBqGh0jf7GJ3k/f5mxMqW3htMD3WdTUVtW8HQ==",
|
||||
"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"
|
||||
}
|
||||
@ -4277,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",
|
||||
@ -4388,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": {
|
||||
@ -4537,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.40",
|
||||
"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.27"
|
||||
"pxt-common-packages": "6.18.4",
|
||||
"pxt-core": "5.33.5"
|
||||
}
|
||||
}
|
||||
|
@ -420,7 +420,8 @@
|
||||
"simGifMaxFrames": 44,
|
||||
"simScreenshotMaxUriLength": 300000,
|
||||
"importExtensionFiles": true,
|
||||
"githubEditor": 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();
|
||||
}
|
||||
|
||||
|
@ -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