Skip to content

Commit

Permalink
Fix Image the second (microsoft#72)
Browse files Browse the repository at this point in the history
* 2.0.1

* Pointing beta-ref to v2

* Bumping pxt-core to 5.15.10

* 2.0.2

* this repo is empty (microsoft#2201)

* Update radio event parm usage descriptions (microsoft#2165)

* add browser db prefix for v2 (microsoft#2208)

* 2.0.3

* Releasing 2.0.3 to live (microsoft#2209)

* dynamically sniff offline app version (microsoft#2059)

* Revert "dynamically sniff offline app version (microsoft#2059)" (microsoft#2211)

This reverts commit b480b34.

* Updating electron to 2.0.3 (microsoft#2210)

* Updating offline reference to 2.0.3 (microsoft#2212)

* Bumping version to 2.1.0

* 2.1.1

* Spelling (microsoft#2214)

* Update write-received-packet-to-serial.md (microsoft#2217)

A support ticket pointed out issues that they'd encountered when trying to follow this document:

- `sendValue` only supports an 8 character string. This is documented in the `sendValue` docs but a longer string had been used here
- Only `radio.onReceivedNumber` is used so the sample output is not consistent with the users experience. I've changed it so that all packets are handled

* Use gcPreAllocateBlock() to fix microsoft#2177, microsoft#2215 (microsoft#2216)

* Use gcPreAllocateBlock() to fix microsoft#2177, microsoft#2215
* bump pcp 6.9.4

* 2.1.2

* Correct dice example (microsoft#2262)

Changed random(6) to random(5) so the number reflect real dice.

* add 4tronix minibit (microsoft#2249)

* Update targetconfig.json (microsoft#2258)

remove mock-iot-extension as it is just an experimental development by The Foundation

* Update calibrate-compass.md (microsoft#2265)

Based on user feedback in Slack https://microbit-community.slack.com/archives/C1ZMKRFHD/p1563274019078400?thread_ts=1563268925.077500&cid=C1ZMKRFHD

* add wukong (microsoft#2239)

* Decrease size of GC heap to allow more DAL allocs (microsoft#2246)

* 2.1.3

* add Kitronik view text (microsoft#2125)

* Release 2.0.6 to live (microsoft#2308)

* Update nexus:bit entry  (microsoft#2315)

* update nexus:bit entry

* update nexus:bit entry

* Logic Lab mini-course (microsoft#2307)

* Logic Lab mini-course

* example syntax

* Updating Readme with branch information.

* bump pxt for ios <=9 fix (microsoft#2311)

* Update pxt/common-packages and fix build (microsoft#2323)

* fix build off of pxt/ and pxt-common-packages master

* check in generated files

* add-pxt-bmp280 (microsoft#2325)

* Bumping pxt-core to 5.19.8 & common-packages to 6.14.9

* 2.1.4

* Error codes page update (microsoft#2327)

* Start adding new codes

* few tiny edits

* Add more errors and rearrange

* Update docs/device/error-codes.md

Co-Authored-By: Michał Moskal <michal@moskal.me>

* juggle category

* set error range in hint

Co-Authored-By: Michał Moskal <michal@moskal.me>

* Update docs/device/error-codes.md

Co-Authored-By: Mark <mark@microbit.org>

* fix build (microsoft#2360)

* fix broken build

* just try the more 'official' fix if possible

* back to the way that actually works..

* bump pxt to include accessibility changes (microsoft#2404)

* 2.1.5

* make hc mode sim color have higher contrast (microsoft#2409)

* Show project settings (microsoft#2401)

* markdown link fix (microsoft#2400)

* add HTS221 (microsoft#2384)

* Editor controllers fixes (microsoft#2412)

* updated strings

* bump pxt

* anotehr attempt

* 2.1.6

* turn on samples when reading accelerometer (microsoft#2413)

* 2.1.7

* hide pin p19/p20 (microsoft#2268)

* Fix remove life animation causing microbit stuck (microsoft#2314)

On the real microbit board, if the program execute other game blocks while
the remove life animation is playing, it would cause strange behavior or
even make the game stuck.

* Port of Programmable Logic lesson for Logic Lab course (microsoft#2359)

* port of programmable logic lesson

* trigger rebuild

* express as logical equation in snippet

* go logical for snippet inputs

* emit enum as bitmask (microsoft#2414)

* 2.1.8

* add alt attributes to download screens (microsoft#2415)

* add alt attributes to download screens, fixes microsoft#2291

* better descriptions

* fixing links in translate page

* Modify the LED coordinates to be between 0 and 4. (microsoft#2416)

Without this change, there is a 11/36 chance no LED lights as [`Math.random(a,b)`](https://docs.python.org/2/library/random.html#random.uniform) (thus the `pick random` block) chooses a number in the (inclusive, closed) interval `[a, b]`.

* Set LED plot row/column ranges for 'Reaction Time' (microsoft#2420)

* add LIS2MDL (microsoft#2385)

* add LIS2DW12 (microsoft#2386)

* add LPS22 (microsoft#2387)

* add LSM6DSO (microsoft#2388)

* add gator environment (microsoft#2326)

* add STTS751 (microsoft#2389)

* add inventura extension (microsoft#2421)

* add new sparkfun extensions (microsoft#2238)

* add new sparkfun extensions

* remove gator environment pending fixes

* add dfplayer mini extension (microsoft#2417)

* Update 'servo calibrator' link (microsoft#2424)

* I2C Addressing Note (microsoft#2428)

* I2C on-board sensor address note

* note for 7bit to 8bit shift

* Add nested summaries for newer courses (microsoft#2425)

* bump pxt (microsoft#2432)

* bump pxt

* bump

* bump

* fix version

* 2.1.9

* bump package.json (microsoft#2433)

* 2.1.10

* bump pxt (microsoft#2434)

* 2.1.11

* bump for diff3 (microsoft#2435)

* enable experiment

* bump pxt

* 2.1.12

* Add the Stu Lowe coding cards (microsoft#2438)

* Add the Stu Lowe coding cards

* Move 'Coding Cards' below 'Hardware'

* Add isDeleted (microsoft#2445)

* add xinabox OD01 and breakout display section (microsoft#2397)

* add xinabox OD01 and breakout display section

* Update targetconfig.json

* Update extensions.md

* Link to power supply limitations (microsoft#2443)

Fixes: microsoft#2442

* Pxt v5.23.17 (microsoft#2446)

* bump pxt

* regen docs

* fix version syntax

* restore extension

* removed dup

* 2.1.13

* add-sw01 (microsoft#2393)

* Locking old issues

* add Keyestudio robot car (microsoft#2452)

* Allow globals in reclaimed bluetooth memory (microsoft#2455)

* isTouchingEdge() should not return true for deleted sprite (microsoft#2449)

* add query variant to hide toolbar (microsoft#2458)

* Adding link to stable refs (microsoft#2460)

* Update extensions.md (microsoft#2456)

Move the :VIEW Text32 from other to Display now there is a display sections

* 2.1.14

* fixing radio stack (microsoft#2461)

* fixing radio stack

* updated shims

* 2.1.15

* Stable points to latest 2.0.9 (microsoft#2469)

* Releasing 2.0.9 to live (microsoft#2470)

* Fixing signal strength (microsoft#2474)

* Pointing to 2.0.10

* Releasing 2.0.10 (microsoft#2476)

With radio strength signal fix for hot or cold

* Removing old bitbot as we have a new bitbot package (microsoft#2479)

* updated pxt (microsoft#2465)

* updated pxt

* bump pxt

* updated react

* updated ptx

* Remove empty variable element from XML

* Bump pxt-core to 5.25.15

* bump pxt

* Bump pxt to 5.25.17

* Add precision to music slider

* 2.1.16

* add drive:bit (microsoft#2484)

* micro:bit RSSI fix (microsoft#2480)

* read rssi from packet

* updated shims

* fix build

* fix help

* move deprecated function to ts

* some formatting

* restore rssi block

* restory notations

* actually copy bytes

* removing logging code

* simpler wake up code

* comment

* fix build

* bump pxt

* go back to safety

* bump microbit

* restor package.json

* revert jquery v

* use macro

* check length

* bump pxt (microsoft#2490)

* 2.1.17

* Use default resize function for microbit gesture dropdown (microsoft#2491)

* Name Badge project page (microsoft#2477)

* Name Bagde project page

* gotta please the summary check

* link typo, ugh

* Revert "Name Badge project page (microsoft#2477)"

This reverts commit 2e28606.

* add freenove starter kit (microsoft#2493)

* radio.setFrequencyBand support (microsoft#2495)

* setfrequencyband support

* revert line change

* add bounds check

* Name Badge project page (microsoft#2496)

* Name Bagde project page

* gotta please the summary check

* link typo, ugh

* get rid of the pptx

* Simplify the Fahrenheit from Celsius computation. (microsoft#2497)

As the micro:bit introduces floating point arithmetic for both the existing `f = 18 * c / 10 + 32` computation and the new `f = 1.8 * c + 32` computation, there isn't any benefit for the former.

* Enable Polish localization (microsoft#2499)

* bump package

* 2.1.18

* shrink maintenance gif

* 2.1.19

* Rotary phone dial (microsoft#2502)

* some write up

* adding images

* text

* more text

* adding vids

* adding escape room

* remove newer lesson

* remove .mp4

* Card page edits

* adding image

* adding to toys

* rotary edits

* fix typo

* bump pxt 5.28.7 (microsoft#2503)

* bump pxt

* bump to pxt 5.28.8

* 2.1.20

* bump pxt 5.28.9 (microsoft#2504)

* 2.1.21

* bump pxt 5.28.10

* 2.1.22

* bump pxt 5.28.11

* 2.1.23

* bump pxt 5.28.12

* 2.1.24

* Update README.md

* robot unicorn (microsoft#2512)

* robot unicorn

* Edits to the unicorn

* fix missing radio and boardname

* bump pxt 5.28.18 (microsoft#2517)

* bump pxt 5.28.18

* updated summary

* 2.1.25

* bump pxt 5.28.21

* 2.1.26

* bump to pxt5.28.23

* 2.1.27

* Add redirect to pins info to serial heading (microsoft#2520)

* Add redirect to pins info to serial heading

* adding links

* vump to pxt 5.28.24

* 2.1.28

* bump to pxt 5.28.26

* 2.1.29

* add build instructions

* updated build notes

* bump pxt 5.28.27

* 2.1.30

* missing svg

* remove crowdin project to disable upload from master branch

* reeanble crowdin, no upload

* 2.1.31

* bump pxt common to 6.16.25

* missing radio package

* Fix GC heap reclamation (microsoft#2528)

* bump to pxt 5.28.31

* bump pxt 5.28.32

* 2.1.32

* 2.1.33

* fix typo

* pxt-microbit-next? (microsoft#2543)

Since the repo https://github.com/microsoft/pxt-microbit-next doesn't exist, I am assuming that the word `next` is not meant to be here.

* Extensions: Add Inksmith Climate Action Kit (microsoft#2535)

* Fixes for typos found in Crowdin - 11252019 (microsoft#2538)

* Extension: add Kitronik Halo HD (microsoft#2541)

* Extension: Add EBOTICS MIBO (microsoft#2542)

* add Bright Wearables Brightboard (microsoft#2537)

* Docs: Change default value in Javascript. (microsoft#2540)

* Change default value in Javascript.

Per @microbit-mark 's suggestion, add an example of how to change the default interval value by switching to Javascript.

* edits to new example

* bump pxt 5.30.6

* 2.1.34

* update git and vscode settings

* revert changes to 2.1.28

* package-lock

* v2.1.34

* Change Hero Image

* add RVR (microsoft#2516)

* Extension: add minicruise (microsoft#2545)

* Fix minutes display for 'Digital Watch' project (microsoft#2547)

* Fix minutes display for 'Digital Watch' project

* minutes less than 10

* bump pxt

* 2.1.35

* updated pxt

* 2.1.36

* package lock

* Tutorial Typo Fix

* staging Servo library support

* bumppxt

* 2.1.37

* update error guide link (microsoft#2554)

* adding radio firefly (microsoft#2549)

* Update 'Metal Detector' example (microsoft#2559)

* bump pxt

* 2.1.38

* typoFix

* package lock

* Update Pins

* Update Pins

* Add C7, C8 and C9 Serial Pins

* Add C7, C8 and C9 Serial Pins

* Pins update

* Add maqueen (microsoft#2560)

* Extensions: Add DFRobot Maqueen

* fix

* revert pin C7, C8 and C9

* Update README.md

* add extension doc file

* revert pxt bump

* Docs: Extensions remove headliner

* Remove outdated #ifdef (microsoft#2564)

* Extensions: add servobit (microsoft#2557)

Co-authored-by: Abhijith Chatra <abchatra@microsoft.com>

* bump to pxt 5.31.8, common 6.18.2

* 2.1.39

* enable github editor experiment (microsoft#2568)

* Fix missing sim function

* bump to pxt 5.31.10

* 2.1.40

* Modify snippets/examples relying of fp div (microsoft#2571)

* Extensions: add DFRobot natural science board (microsoft#2574)

* Extensions: add Kitronik clip dtector (microsoft#2576)

Co-authored-by: Abhijith Chatra <abchatra@microsoft.com>

* missing image

* Fix lesson images

* fix images 2

* Add SpeedPicker to Motor Blocks

* add sixth motor pin (M_GND3)

Co-authored-by: Abhijith Chatra <abchatra@microsoft.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
Co-authored-by: Galen Nickel <v-gani@microsoft.com>
Co-authored-by: Joey Wunderlich <jwunderl@users.noreply.github.com>
Co-authored-by: Danny Yates <danny@codeaholics.org>
Co-authored-by: Sam Kent <32453267+microbit-sam@users.noreply.github.com>
Co-authored-by: Michał Moskal <michal@moskal.me>
Co-authored-by: Daryl Zuniga <Daryl.Zuniga@gmail.com>
Co-authored-by: Eric Kimsey <ekimsey@users.noreply.github.com>
Co-authored-by: Mark <mark@microbit.org>
Co-authored-by: Richard Knoll <riknoll@users.noreply.github.com>
Co-authored-by: Peter Brodersen <peter@ter.dk>
Co-authored-by: Leo <leo881003@gmail.com>
Co-authored-by: Asher Kach <asher.kach@gmail.com>
Co-authored-by: Franklin Tse <FranklinWhale@users.noreply.github.com>
Co-authored-by: Neal McBurnett <nealmcb@gmail.com>
Co-authored-by: Kitronik Ltd  <design@kitronik.co.uk>
Co-authored-by: shakao <34112083+shakao@users.noreply.github.com>
Co-authored-by: Helen Leigh <48659173+helenleigh@users.noreply.github.com>
Co-authored-by: Gerard Braad <me@gbraad.nl>
Co-authored-by: Nicole Parrot <cleoqc1124@gmail.com>
  • Loading branch information
1 parent 9392c22 commit 3fcd625
Show file tree
Hide file tree
Showing 18 changed files with 634 additions and 646 deletions.
4 changes: 2 additions & 2 deletions docs/calliope/firststeps/firstSteps.md
Expand Up @@ -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.

![Connecting Image](/docs/calliope/firststeps/connecting.jpg)
![Connecting Image](/calliope/firststeps/connecting.jpg)


## Introduction @unplugged
Expand All @@ -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.

![Powering Image](/docs/calliope/firststeps/powerItUp.png)
![Powering Image](/calliope/firststeps/powerItUp.png)


## Introduction @unplugged
Expand Down
8 changes: 4 additions & 4 deletions docs/projects.md
Expand Up @@ -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"
}
]
```
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/coin-flipper.md
Expand Up @@ -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.

![Simulating coin toss](/docs/calliope/tutorials/08_coin_flipper_animation.gif)
![Simulating coin toss](/calliope/tutorials/08_coin_flipper_animation.gif)

## Step 1

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/dice.md
Expand Up @@ -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)).

![A mini dice](/docs/calliope/tutorials/04_dice_animation.gif)
![A mini dice](/calliope/tutorials/04_dice_animation.gif)

## Step 1 @fullscreen

Expand Down
6 changes: 3 additions & 3 deletions docs/projects/flashing-heart.md
Expand Up @@ -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)).


![Heart shape in the LEDs](/docs/calliope/tutorials/01_flashing_heart_animation.gif)
![Heart shape in the LEDs](/calliope/tutorials/01_flashing_heart_animation.gif)

## Step 1 @fullscreen

Place the ``||basic:show leds||`` block in the ``||basic:forever||`` block and draw a heart.

![An animation that shows how to drag a block and paint a heart](/docs/calliope/tutorials/add_show_led.gif)
![An animation that shows how to drag a block and paint a heart](/calliope/tutorials/add_show_led.gif)

## Step 2 @fullscreen

Expand All @@ -39,7 +39,7 @@ basic.forever(function() {

Look at the virtual @boardname@, you should see the heart and your drawing blink on the screen.

![Heart shape in the LEDs](/docs/calliope/tutorials/01_flashing_heart_animation.gif)
![Heart shape in the LEDs](/calliope/tutorials/01_flashing_heart_animation.gif)

## Step 4 @fullscreen

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/love-meter.md
Expand Up @@ -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.

![Love meter banner message](/docs/calliope/tutorials/05_love_meter_animation.gif)
![Love meter banner message](/calliope/tutorials/05_love_meter_animation.gif)

## Step 1

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/mini-chat.md
Expand Up @@ -2,7 +2,7 @@

## Introduction @unplugged

![Two @boardname@ connected via radio](/docs/calliope/tutorials/06_mini_chat_animation.gif)
![Two @boardname@ connected via radio](/calliope/tutorials/06_mini_chat_animation.gif)

Use the **radio** to send and receive messages with other @boardname@.

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/multi-dice.md
Expand Up @@ -2,7 +2,7 @@

## Introduction @unplugged

![Multiple @boardname@ throwing a dice](/docs/calliope/tutorials/10_multi_dice_animation.gif)
![Multiple @boardname@ throwing a dice](/calliope/tutorials/10_multi_dice_animation.gif)

Build a multi-player dice game using the **radio**. The **radio** blocks let you send wireless messages between a @boardname@ and another @boardname@.

Expand Down
4 changes: 2 additions & 2 deletions docs/projects/name-tag.md
Expand Up @@ -4,7 +4,7 @@

Tell everyone who you are. Show you name on the LEDs.

![Name scrolling on the LEDs](/docs/calliope/tutorials/02_nametag_animation.gif)
![Name scrolling on the LEDs](/calliope/tutorials/02_nametag_animation.gif)

## Step 1 @fullscreen

Expand All @@ -20,7 +20,7 @@ basic.forever(() => {

Look at the simulator and make sure it shows your name on the screen.

![Name scrolling on the LEDs](/docs/calliope/tutorials/02_nametag_animation.gif)
![Name scrolling on the LEDs](/calliope/tutorials/02_nametag_animation.gif)

## Step 3 @fullscreen

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/rock-paper-scissors.md
Expand Up @@ -2,7 +2,7 @@

## Introduction @unplugged

![Animation of the Rock Paper Scissors game](/docs/calliope/tutorials/07_stone_paper_scissors_animation.gif)
![Animation of the Rock Paper Scissors game](/calliope/tutorials/07_stone_paper_scissors_animation.gif)

Use the accelerometer and the screen to build a **Rock Paper Scissors** game that you can play with your friends!

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/smiley-buttons.md
Expand Up @@ -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)).

![Pressing the A and B buttons](/docs/calliope/tutorials/03_smiley_button_animation.gif)
![Pressing the A and B buttons](/calliope/tutorials/03_smiley_button_animation.gif)

## Step 1 @fullscreen

Expand Down
2 changes: 1 addition & 1 deletion docs/projects/snap-the-dot.md
Expand Up @@ -2,7 +2,7 @@

## Introduction @unplugged

![Animation of the snap the dot game](/docs/calliope/tutorials/09_snap_the_dot_animation.gif)
![Animation of the snap the dot game](/calliope/tutorials/09_snap_the_dot_animation.gif)

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.

Expand Down
10 changes: 5 additions & 5 deletions editor/extension.tsx
Expand Up @@ -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>
Expand All @@ -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">
Expand All @@ -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">
Expand Down Expand Up @@ -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">
Expand All @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion faviconDescription.json
@@ -1,6 +1,6 @@
{
"masterPicture": "docs/static/microbit.simplified.svg",
"iconsPath": "/docs/static/icons",
"iconsPath": "/static/icons",
"design": {
"ios": {
"pictureAspect": "backgroundAndMargin",
Expand Down
2 changes: 2 additions & 0 deletions libs/core/motors.cpp
Expand Up @@ -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);
}
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions libs/core/pinscompat.ts
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion libs/core/shims.d.ts
Expand Up @@ -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;

/**
Expand All @@ -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;
}
Expand Down

0 comments on commit 3fcd625

Please sign in to comment.