Compare commits

...

47 Commits

Author SHA1 Message Date
63d0b86508 0.6.21 2016-11-29 00:04:43 -08:00
672f3b94ca Bump pxt-core to 0.5.81 2016-11-29 00:04:41 -08:00
f0b91b07c1 fix typo 2016-11-29 00:04:21 -08:00
2923d045b1 0.6.20 2016-11-28 22:59:39 -08:00
3cf36b4549 Bump pxt-core to 0.5.80 2016-11-28 22:59:38 -08:00
a42aa553e6 Merge pull request #308 from Microsoft/cmdsbuild
fixing imports in cmds.ts
2016-11-28 22:50:05 -08:00
b12598e421 working around import issue 2016-11-28 22:07:40 -08:00
9a85075456 0.6.19 2016-11-28 21:24:44 -08:00
ce7b630870 Bump pxt-core to 0.5.79 2016-11-28 21:24:41 -08:00
9ac308da92 0.6.18 2016-11-28 21:11:21 -08:00
6315ca90e5 Bump pxt-core to 0.5.78 2016-11-28 21:11:19 -08:00
ecfe0a7f16 0.6.17 2016-11-28 20:44:04 -08:00
f701bca23f Bump pxt-core to 0.5.77 2016-11-28 20:44:02 -08:00
7313c76e8b Updating with the MIT license text and contributing guideline 2016-11-28 17:11:45 -08:00
77003b30f2 fixed scroll-image reference 2016-11-28 11:38:37 -08:00
274bb9e042 0.6.16 2016-11-17 05:47:13 -08:00
e316f068e2 Bump pxt-core to 0.5.76 2016-11-17 05:47:11 -08:00
c75e77593a adding loc annotations 2016-11-17 05:30:10 -08:00
ecbf8409ea Merge pull request #307 from Microsoft/scrollimage
Fixing scrollImage to actually scroll
2016-11-17 04:44:44 -08:00
411fe52813 Fixing scrollimage to actually scroll. 2016-11-16 18:16:49 -08:00
0d04376413 0.6.15 2016-11-15 20:10:08 -08:00
5deffe832c Bump pxt-core to 0.5.75 2016-11-15 20:10:07 -08:00
528f696b8c Removing gettingStarted property from pxtarget.json. Using sideDoc instead. 2016-11-14 14:24:21 -08:00
dfb5f7dd11 0.6.14 2016-11-14 07:13:33 -08:00
a4fb934a18 Bump pxt-core to 0.5.73 2016-11-14 07:13:31 -08:00
59b11ec2a9 Updating the mutate attribute of radio block (#306) 2016-11-14 07:12:24 -08:00
d961e14e5c bumped to 0.6.13 2016-11-11 15:14:54 -08:00
83c8c07b94 0.6.13 2016-11-11 15:07:50 -08:00
152f84cd79 Bump pxt-core to 0.5.72 2016-11-11 15:07:47 -08:00
ef58b54fdb adding projects menu 2016-11-11 15:06:41 -08:00
50e2f3fa94 0.6.12 2016-11-11 14:05:00 -08:00
14f4e6092a Bump pxt-core to 0.5.71 2016-11-11 14:04:56 -08:00
f7a005c656 Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-11-11 13:37:51 -08:00
7e19fbb3ca updated translations 2016-11-11 13:37:29 -08:00
e706809037 Adding getting-started option 2016-11-11 13:36:40 -08:00
5d6bc2f5df updated loc files 2016-11-11 10:44:21 -08:00
22433317b9 Updating the mutate attribute of radio block 2016-11-11 08:16:27 -08:00
fabf09477c fixing broken link 2016-11-11 06:54:17 -08:00
f9e0fe1b8d 0.6.11 2016-11-11 06:48:59 -08:00
c49fb27d4c Bump pxt-core to 0.5.68 2016-11-11 06:48:58 -08:00
24b20543c5 moving less, semantic to dev dependencies 2016-11-10 22:56:33 -08:00
be97665ea2 0.6.10 2016-11-10 14:53:50 -08:00
657cdeb53e Bump pxt-core to 0.5.66 2016-11-10 14:53:48 -08:00
08575d352b pxt-microbit can now be required and exports useful information about its bundled pxt-core (#305) 2016-11-10 12:12:57 -08:00
c9ba7af3f3 0.6.9 2016-11-10 08:53:57 -08:00
917072a336 Bump pxt-core to 0.5.64 2016-11-10 08:53:54 -08:00
fd5357b273 simplify projects 2016-11-10 08:37:13 -08:00
31 changed files with 432 additions and 384 deletions

26
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,26 @@
# Contributing Code
PXT accepts bug fix pull requests. For a bug fix PR to be accepted, it must first have a tracking issue that has been marked approved. Your PR should link to the bug you are fixing. If you've submitted a PR for a bug, please post a comment in the bug to avoid duplication of effort.
PXT also accepts new feature pull requests. For a feature-level PR to be accepted, it first needs to have design discussion. Design discussion can take one of two forms a) a feature request in the issue tracker that has been marked as approved or b) the PR must be accompanied by a full design spec and this spec is later approved in the open design discussion. Features are evaluated against their complexity, impact on other features, roadmap alignment, and maintainability.
These two blogs posts on contributing code to open source projects are a good reference: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza and [Don't "Push" Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik.
## Security
If you believe you have found a security issue in PXT, please share it with us privately following the guidance at the Microsoft [Security TechCenter](https://technet.microsoft.com/en-us/security/ff852094). Reporting it via this channel helps minimize risk to projects built with PXT.
## Legal
You will need to complete a Contributor License Agreement (CLA) before your pull request can be accepted. This agreement testifies that you are granting us permission to use the source code you are submitting, and that this work is being submitted under appropriate license that we can use it.
You can complete the CLA by going through the steps at https://cla.microsoft.com. Once we have received the signed CLA, we'll review the request. You will only need to do this once.
## Housekeeping
Your pull request should:
* Include a description of what your change intends to do
* Be a child commit of a reasonably recent commit in the master branch
* Pass all unit tests
* Have a clear commit message
* Include adequate tests

25
LICENSE.txt Normal file
View File

@ -0,0 +1,25 @@
PXT - Programming Experience Toolkit
The MIT License (MIT)
Copyright (c) Microsoft Corporation
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,4 +1,5 @@
/// <reference path="../node_modules/pxt-core/built/pxt.d.ts"/>
/// <reference path="../node_modules/pxt-core/typings/node/node.d.ts"/>
/// <reference path="../node_modules/pxt-core/built/pxtlib.d.ts" />
import * as fs from "fs";
import * as path from "path";

4
cmds/pxtrequire.ts Normal file
View File

@ -0,0 +1,4 @@
import * as path from "path";
export let pxtCore = require("pxt-core");
// require.resolve() gives path to [pxt dir]/built/pxt.js, so move up twice to get pxt root dir
export let pxtCoreDir = path.resolve(require.resolve("pxt-core"), "..", "..");

View File

@ -1,6 +1,6 @@
# Blocks language
### @description Langugage constructs for the Block editor.
### @description Language constructs for the Block editor.
```namespaces
for (let i = 0;i<5;++i) {}

View File

@ -1,3 +1,3 @@
{
"appref": "v0.5.33"
"appref": "v0.6.13"
}

View File

@ -57,7 +57,7 @@ Fun games to build with your @boardname@.
"imageUrl":"/static/mb/projects/wallet.png"
}, {
"name": "Watch",
"url":"/projects/the-watch",
"url":"/projects/watch",
"imageUrl":"/static/mb/projects/a10-watch.png"
}]
```
@ -92,4 +92,4 @@ Fun games to build with your @boardname@.
### See Also
[Flashing Heart](/projects/flashing-heart), [Smiley Buttons](/projects/smiley-buttons), [Love Meter](/projects/love-meter), [Rock Paper Scissors](/projects/rock-paper-scissors), [Compass](/projects/compass), [Hack your headphones](/projects/hack-your-headphones), [Banana keyboard](/projects/banana-keyboard), [Telegraph](/projects/telegraph), [Radio](/projects/radio), [Guitar](/projects/guitar), [Watch](/projects/the-watch)
[Flashing Heart](/projects/flashing-heart), [Smiley Buttons](/projects/smiley-buttons), [Love Meter](/projects/love-meter), [Rock Paper Scissors](/projects/rock-paper-scissors), [Compass](/projects/compass), [Hack your headphones](/projects/hack-your-headphones), [Banana keyboard](/projects/banana-keyboard), [Telegraph](/projects/telegraph), [Radio](/projects/radio), [Guitar](/projects/guitar), [Wallet](/projects/wallet), [Watch](/projects/watch)

View File

@ -1,24 +1,7 @@
# flashing heart
![](/static/mb/projects/a1-display.png)
### ~avatar avatar
```sim
basic.forever(() => {
basic.showLeds(`
. # . # .
# # # # #
# # # # #
. # # # .
. . # . .`
);
basic.pause(500);
basic.clearScreen();
basic.pause(500);
})
```
Use the LEDs to display a flashing heart, and then create
an animation of a broken heart. :(

View File

@ -1,7 +1,5 @@
# Guitar
![guitar icon](/static/mb/projects/guitar.png)
### @description A beginner-intermediate maker activity, building a guitar with the @boardname@
### ~avatar avatar
@ -9,7 +7,7 @@
Make a @boardname@ guitar with this guided tutorial!
### ~
*playing @boardname@ guitar*
https://youtu.be/GYmdTFvxz80
## Duration

View File

@ -19,17 +19,17 @@ Build your own music player @boardname@ from headphones.
* Headphones
* Crocodile clips
## Activities
* [Connect your headphone](/projects/hack-your-headphones/make)
* [Play sounds!]()
# ~hint
**No crocodile clips!?!?!** Use wires or Aluminium foil! [Read more...](/device/foil-circuits)
# ~
## Activities
* [Connect your headphone](/projects/hack-your-headphones/make)
* [Play sounds!]()
### ~button /projects/hack-your-headphones/make
Let's get started!

View File

@ -1,8 +1,10 @@
# love meter
![](/static/mb/projects/a3-pins.png)
### ~avatar avatar
Use pins P0, P1 and P2 to change the display by creating a circuit with your body.
Use pins and your body to change the display!
### ~
## Step 1

View File

@ -1,10 +1,8 @@
# magic button trick
Perform a magic trick where you appear to make the **A** and **B** button of your @boardname@ swap over just by moving a sticky label.
### ~avatar avatar
Welcome! This activity will teach you how to use the @boardname@'s compass to detect a nearby magnet
Build a magic trick that uses the @boardname@'s compass to detect a nearby magnet!
### ~
This is a simple magic trick you can perform to amaze your friends, where by moving the sticky labels on your @boardname@'s **A** and **B** button you appear to make the buttons really switch over. To see the trick performed watch the video below.

View File

@ -1,51 +1,11 @@
# rock paper scissors
![](/static/mb/projects/a4-motion.png)
### ~avatar avatar
```sim
input.onGesture(Gesture.Shake, () => {
let img = Math.random(3)
if (img == 0) {
basic.showLeds(`
# # # # #
# . . . #
# . . . #
# . . . #
# # # # #
`)
} else if (img == 1) {
basic.showLeds(`
. . . . .
. # # # .
. # # # .
. # # # .
. . . . .
`)
} else {
basic.showLeds(`
# # . . #
# # . # .
. . # . .
# # . # .
# # . . #
`)
}
})
```
In this project, you will build a Rock Paper Scissors game with the @boardname@.
You can play the game with a friend who has it on a @boardname@.
You can also play it with friends who are just using their hands.
Build a rock paper scissors game!
### ~
## Materials needed
* Your @boardname@ -- that's it!
## Step 1: Getting started
We want the @boardname@ to choose rock, paper, or scissors when you shake it.

View File

@ -1,8 +1,10 @@
# smiley buttons
![](/static/mb/projects/a2-buttons.png)
### ~avatar
Use buttons to show a smiley or frowny face.
Use buttons to show a smiley face!
### ~
## Step 1

View File

@ -1,7 +1,5 @@
# Wallet
![wallet icon](/static/mb/projects/wallet.png)
### @description A beginner maker activity, building a duct tape wallet with the @boardname@
### ~avatar avatar
@ -12,23 +10,6 @@ Make a @boardname@ wallet with this guided tutorial!
![wallet image](/static/mb/projects/wallet/wallet.jpg)
## Duration
2 Activities, approx 30-45 min each based on familiarity with the coding concepts
## Materials
* Paper sheet
* Tape (masking, duct tape, and/or packing tape)
* Scissors
* 1 @boardname@, battery holder and 2 AAA batteries
* Marker or pen
## Activities
* [Make](/projects/wallet/make)
* [Code](/projects/wallet/code)
### ~button /projects/wallet/make
Let's get started!

20
docs/projects/watch.md Normal file
View File

@ -0,0 +1,20 @@
# the watch
### ~avatar
Build your own @boardname@ watch from an old pair of jeans and T-shirt!
### ~
![](/static/mb/lessons/the-watch-1.png)
### ~button /projects/watch/make
Let's get started!
### ~
### Acknowledgements
Artistic design by Melinda Hoeneisen.

View File

@ -1,12 +1,14 @@
![](/static/mb/projects/a10-watch.png)
# the watch - Make
# the watch
### @description Maker Project for Watch
![](/static/mb/lessons/the-watch-0.png)
### ~avatar avatar
In this project, you will build your own wearable @boardname@ watch from an old pair of jeans and T-shirt. Project duration: 15 minutes.
Make a watch for your @boardname@
![](/static/mb/lessons/the-watch-1.png)
### ~
## Duration: ~30 minutes
## Materials
@ -147,8 +149,3 @@ Trim any leftover fabric, threads or tape.
![](/static/mb/lessons/the-watch-23.png)
Your watch is ready!
### Acknowledgements
Artistic design by Melinda Hoeneisen.

View File

@ -0,0 +1,6 @@
{
"bluetooth.uartWriteNumber": "Gibt einen numerischen Wert an die serielle",
"bluetooth.uartWriteValue": "Schreibt ein ``Namen: Wert`` Wertepaar auf die serielle Schnittstelle.",
"bluetooth.uartWriteValue|param|name": "Name des Wertestreams, z.B.: x",
"bluetooth.uartWriteValue|param|value": "Schreiben"
}

View File

@ -1,6 +1,82 @@
{
"AcceleratorRange.EightG": "The accelerator measures forces up to 8 gravity",
"AcceleratorRange.EightG|block": "8g",
"AcceleratorRange.FourG": "The accelerator measures forces up to 4 gravity",
"AcceleratorRange.FourG|block": "4g",
"AcceleratorRange.OneG": "The accelerator measures forces up to 1 gravity",
"AcceleratorRange.OneG|block": "1g",
"AcceleratorRange.TwoG": "The accelerator measures forces up to 2 gravity",
"AcceleratorRange.TwoG|block": "2g",
"BaudRate.BaudRate115200|block": "115200",
"BaudRate.BaudRate9600|block": "9600",
"BeatFraction.Eighth|block": "1/8",
"BeatFraction.Half|block": "1/2",
"BeatFraction.Quarter|block": "1/4",
"BeatFraction.Sixteenth|block": "1/16",
"BeatFraction.Whole|block": "1",
"Button.AB|block": "A+B",
"Delimiters.Colon|block": ":",
"Delimiters.Comma|block": ",",
"Delimiters.Dollar|block": "$",
"Delimiters.Fullstop|block": ".",
"Delimiters.Hash|block": "#",
"Delimiters.NewLine|block": "new line",
"Dimension.Strength|block": "strength",
"Dimension.X|block": "x",
"Dimension.Y|block": "y",
"Dimension.Z|block": "z",
"Direction.Left|block": "left",
"Direction.Right|block": "right",
"DisplayMode.BackAndWhite|block": "black and white",
"DisplayMode.Greyscale|block": "greyscale",
"EventCreationMode.CreateAndFire": "MicroBitEvent is initialised, and its event handlers are immediately fired (not suitable for use in interrupts!).",
"EventCreationMode.CreateOnly": "MicroBitEvent is initialised, and no further processing takes place.",
"Gesture.FreeFall": "Raised when the board is falling!",
"Gesture.FreeFall|block": "free fall",
"Gesture.LogoDown": "Raised when the logo is downward and the screen is vertical",
"Gesture.LogoDown|block": "logo down",
"Gesture.LogoUp": "Raised when the logo is upward and the screen is vertical",
"Gesture.LogoUp|block": "logo up",
"Gesture.ScreenDown": "Raised when the screen is pointing up and the board is horizontal",
"Gesture.ScreenDown|block": "screen down",
"Gesture.ScreenUp": "Raised when the screen is pointing down and the board is horizontal",
"Gesture.ScreenUp|block": "screen up",
"Gesture.Shake": "Raised when shaken",
"Gesture.Shake|block": "shake",
"Gesture.SixG": "Raised when a 6G shock is detected",
"Gesture.SixG|block": "6g",
"Gesture.ThreeG": "Raised when a 3G shock is detected",
"Gesture.ThreeG|block": "3g",
"Gesture.TiltLeft": "Raised when the screen is pointing left",
"Gesture.TiltLeft|block": "tilt left",
"Gesture.TiltRight": "Raised when the screen is pointing right",
"Gesture.TiltRight|block": "tilt right",
"LedSpriteProperty.Blink|block": "blink",
"LedSpriteProperty.Brightness|block": "brightness",
"LedSpriteProperty.Direction|block": "direction",
"LedSpriteProperty.X|block": "x",
"LedSpriteProperty.Y|block": "y",
"Math.randomBoolean|block": "pick random true or false",
"Math|block": "Math",
"Note.CSharp3|block": "C#3",
"Note.CSharp4|block": "C#4",
"Note.CSharp5|block": "C#5",
"Note.CSharp|block": "C#",
"Note.FSharp3|block": "F#3",
"Note.FSharp4|block": "F#4",
"Note.FSharp5|block": "F#5",
"Note.FSharp|block": "F#",
"Note.GSharp3|block": "G#3",
"Note.GSharp4|block": "G#4",
"Note.GSharp5|block": "G#5",
"Note.GSharp|block": "G#",
"PinPullMode.PullDown|block": "down",
"PinPullMode.PullNone|block": "none",
"PinPullMode.PullUp|block": "up",
"PulseValue.High|block": "high",
"PulseValue.Low|block": "low",
"Rotation.Pitch|block": "pitch",
"Rotation.Roll|block": "roll",
"String.charAt|block": "char from %this|at %pos",
"String.compare|block": "compare %this| to %that",
"String.concat|block": "join %this|%other",

View File

@ -1,6 +1,31 @@
{
"Math.abs": "Gibt den absoluten Wert einer Zahl aus (den Wert unabhängig davon, ob er positiv oder negativ ist).\nDer absolute Wert von -5 ist zum Beispiel der gleiche wie der von 5.",
"Math.abs|param|x": "Ein numerischer Ausdruck, für den der absolute Wert benötigt wird.",
"Math.max": "Gibt den größeren von zwei vorhandenen numerischen Ausdrücken aus.",
"Math.min": "Gibt den niedrigeren von zwei vorhandenen numerischen Ausdrücken aus.",
"Math.pow": "Gibt den Wert eines grundlegenden Ausdrucks bis zu einer bestimmten Stärke aus.",
"Math.pow|param|x": "Der Basiswert des Ausdrucks.",
"Math.pow|param|y": "Der exponentielle Wert des Ausdrucks.",
"Math.random": "Gibt eine pseudozufüllige Zahl zwischen 0 und `max`aus.",
"Math.randomBoolean": "Erzeugt zufällig einen \"wahr\" oder \"falsch\"-Wert, wie bei einem Münzwurf.",
"Math.sign": "Gibt das Vorzeichen von x aus und zeigt an, ob dieses positiv, negativ oder null ist.",
"Math.sign|param|x": "Der numerische Ausdruck, der getestet werden soll",
"Math.sqrt": "Gibt die Quadratwurzel einer Zahl aus.",
"Math.sqrt|param|x": "Ein numerischer Ausdruck.",
"String.charAt": "Gibt den Buchstaben beim angegebenen Index aus.",
"String.charAt|param|index": "Der null-basierte index des gewünschten Zeichens.",
"String.charCodeAt": "Gibt den Unicode-Wert des Zeichens am vorgegebenen Ort aus.",
"String.charCodeAt|param|index": "Der null-basierte Index des gewünschten Zeichens. Wenn kein Zeichen am angegeben Index vorhanden ist, wird NaN ausgegeben.",
"String.compare": "Bestimmt die relative Reihenfolge zweier Strings (in ASCII).",
"String.compare|param|that": "Zeichenfolge, die mit der Zielzeichenfolge verglichen werden soll",
"String.concat": "Gibt eine Zeichenfolge aus, die die Verkettung von zwei oder mehr Zeichenfolgen ist.",
"String.concat|param|other": "Die Zeichenfolge, die an das Ende einer Zeichenfolge angehängt werden soll.",
"String.fromCharCode": "Erstelle Sie eine Zeichenfolge aus dem angegebenen ASCII-Zeichencode.",
"String.isEmpty": "Gibt einen Wert aus, der anzeigt, ob die Zeichenfolge leer ist",
"String.length": "Gibt die Länge einer Zeichenfolge aus.",
"String.substr": "Gibt eine Teilzeichenfolge der aktuellen Zeichenfolge aus.",
"String.substr|param|length": "Anzahl der zu extrahierenden Zeichen",
"String.substr|param|start": "Erster Zeichenindex, kann beim zählen vom Ende negativ sein, zum Beispiel: 0",
"basic": "Bietet Zugriff auf grundlegende mini-Funktionalität.",
"basic.clearScreen": "Schalte alle LEDs aus",
"basic.forever": "Wiederholt immer wieder den Code im Hintergrund. Bei jeder Iteration ist es möglich, anderen Code auszuführen.",
@ -20,19 +45,50 @@
"basic.showString|param|interval": "Wie schnell die Zeichen geändert werden; z.B. 150, 100, 200,-100",
"basic.showString|param|text": "Text auf dem Bildschirm dargestellt werden soll, z.B.: \"Hallo!\"",
"control": "Laufzeit- und Event-Dienstprogramme.",
"control.assert": "Wenn die Bedingung falsch ist, zeige eine Nachricht auf der seriellen Konsole und gebe Panic-Code 098 aus",
"control.deviceName": "Erzeugt einen Namen für das Gerät, basierend auf der Seriennummer",
"control.eventSourceId": "Gibt den Wert einer C++-Laufzeitkonstanten aus",
"control.eventTimestamp": "Holt den Zeitstempel des letzten Events auf dem Bus",
"control.eventValue": "Holt den Wert des letzten ausgeführten Events auf dem Bus",
"control.eventValueId": "Gibt den Wert einer C++-Laufzeitkonstanten aus",
"control.inBackground": "Plant Code, der im Hintergrund wiedergegeben wird.",
"control.onEvent": "Startet ein Event auf dem Event-Bus.",
"control.panic": "Zeigt einen spezifizierten Fehlercode und hält das Programm an.",
"control.raiseEvent": "Startet ein Event auf dem Event-Bus.",
"control.raiseEvent|param|mode": "optionale Definition davon, wie ein Event nach dem Erstellen ausgeführt wird (Standard ist \"CREATE_AND_FIRE).",
"control.raiseEvent|param|src": "ID der Calliope mini-Komponente, die das Event generiert hat, zum Beispiel CALLIOPE_ID_BUTTON_A.",
"control.raiseEvent|param|value": "Komponentenspezifischer Code, der den Grund des Events angibt.",
"control.reset": "Seit den mini zurück.",
"control.runtimeWarning": "Zeige Warnmeldung im Simulator.",
"control.waitMicros": "Sperrt die aktuelle Leitung für die Dauer der angegebenen Mikrosekunden",
"control.waitMicros|param|micros": "Anzahl der Mikrosekunden, die gewartet werden soll, z.B.: 4",
"game": "Eine Einzel-LED-Sprite-Spielumgebung",
"game.addLife": "Fügt Leben zum aktuellen Spielstand hinzu",
"game.addLife|param|lives": "TODO",
"game.addScore": "Fügt zum aktuellen Spielstand Punkte hinzu",
"game.addScore|param|points": "Anzahl von zu verändernden Punkten, z.B.: 1",
"game.createSprite": "Erzeugt einen neuen LED-Sprite, der nach rechts zeigt.",
"game.createSprite|param|x": "horizontale Koordinate des Sprites, z.B. 2",
"game.createSprite|param|y": "vertikale Koordinate des Sprites, z.B. 2",
"game.currentTime": "Ruft die verbliebene Zeit (seit `starte Countdown`) oder die aktuelle Zeit (seit das Gerät gestartet wurde oder eine Stoppuhr aktiviert wurde) an.",
"game.gameOver": "Gibt über eine Animation ein Spiel wieder.",
"game.invalidSprite": "Ruft einen invaliden Sprite ab; wird genutzt, um Locale zu initialisieren.",
"game.isGameOver": "Zeigt an, ob das Spil die \"Game Over\"-Sequenz angezeigt hat.",
"game.isRunning": "Holt einen Wert, der anzeigt, ob das Spiel noch läuft. Gibt `falsch`aus, wenn das Spiel zu Ende ist.",
"game.level": "Ruft das aktuelle Level ab",
"game.levelUp": "Erhöht das Level und zeigt eine Nachricht an.",
"game.life": "Ruft das aktuelle Leben ab",
"game.removeLife": "Entfernt ein Leben",
"game.removeLife|param|life": "TODO",
"game.score": "Ruft den aktuellen Punktestand ab",
"game.setLife": "Setzt den aktuellen Wert der Leben",
"game.setLife|param|value": "TODO",
"game.setScore": "Setzt den aktuellen Wert des Spielstands",
"game.setScore|param|value": "TODO",
"game.showScore": "Zeigt den Spielstand auf dem Display.",
"game.startCountdown": "Startet einen Spiel-Countdown",
"game.startCountdown|param|ms": "Countdown-Dauer in Millisekunden, z.B.: 10000",
"game.startStopwatch": "Startet eine Stoppuhr.`aktuelle Zeit`gibt die vergangene Zeit an.",
"images": "Erstellung, Bearbeitung und Anzeige von LED-Bildern.",
"images.createBigImage": "Erstellt ein Bild mit zwei Einzelbildern.",
"images.createImage": "Erstellt ein Bild, das auf den LED-Bildschirm passt.",
@ -76,6 +132,7 @@
"input.temperature": "Ruft die aktuelle Temperatur in Grad Celsius (°C) ab.",
"led": "Steuerung des LED-Bildschirms.",
"led.brightness": "Ruft die Helligkeit des Bildschirms ab, von 0 (aus) bis 255 (volle Helligkeit).",
"led.enable": "Schaltet das Display an und aus",
"led.fadeIn": "Blendet die Bildschirmanzeige ein.",
"led.fadeIn|param|ms": "TODO",
"led.fadeOut": "Blendet die Bildschirmhelligkeit aus.",
@ -133,12 +190,16 @@
"pins.analogWritePin": "Legt den Wert des Verbinders auf analog fest. Der Wert muss zwischen 0 und 1023 liegen.",
"pins.analogWritePin|param|name": "PIN-Name, auf den geschrieben werden soll",
"pins.analogWritePin|param|value": "Wert, der auf den Pin geschrieben werden soll, zwischen ``0`` und ``1023`` z.B.: 1023,0",
"pins.createBuffer": "Erstellt einen Null-initialisierten Zwischenspeicher.",
"pins.createBuffer|param|size": "Anzahl der Bytes im Zwischenspeicher",
"pins.digitalReadPin": "Lese den angegebene Pin oder Verbinder als 0 oder 1",
"pins.digitalReadPin|param|name": "Pin, aus dem gelesen werden soll",
"pins.digitalWritePin": "Setzt einen Pin- oder Verbinder-Wert auf 0 oder 1.",
"pins.digitalWritePin|param|name": "Pin, auf den geschrieben werden soll",
"pins.digitalWritePin|param|value": "Wert, der auf dem Pin 1 gesetzt werden soll, z.B. 0",
"pins.i2cReadBuffer": "Lese `Größe`bytes aus einer 7-bit I2C-Adresse.",
"pins.i2cReadNumber": "Lese eine Nummer aus einer 7-bit I2C-Adresse.",
"pins.i2cWriteBuffer": "Schreibt Bytes in eine 7-bit I2C-Adresse.",
"pins.i2cWriteNumber": "Schreibe eine Nummer in eine 7-bit I2C-Adresse.",
"pins.map": "Definiert eine Nummer von einer Auswahl zu einer anderen um. Ein Wert ``von niedrig``wird so auf ``zu niedrig``umgeändert, ein Wert ``von hoch`` zu ``zu hoch`` etc.",
"pins.map|param|fromHigh": "die obere Grenze des aktuellen Wertebereichs, z.B.: 1023",
@ -148,6 +209,9 @@
"pins.map|param|value": "Wert in Bereichen zuordnen",
"pins.onPulsed": "Stellt diesen Pin als einen Digitaleingang ein und generiert Ereignisse, deren Zeitstempel die Dauer darstellt, in der der Pin entweder ``hoch``oder ``niedrig``war.",
"pins.pulseDuration": "Ruft die Dauer des letzten Impulses in Mikrosendungen ab. Diese Funktion soll von einem `onPulsed`-Handler aufgerufen werden.",
"pins.pulseIn": "Gibt die Dauer eines Pulses in Mikrosekunden an",
"pins.pulseIn|param|name": "der Pin, der den Puls misst",
"pins.pulseIn|param|value": "der Wert des Pulses (Standard hoch)",
"pins.servoSetPulse": "Konfiguriert diesen IO-Pin als einen analogen/PWM-Ausgang, stellt den Zeitraum auf 20 ms ein und setzt die Pulsweite fest, basieren auf dem angegeben Wert **Mikrosekunden** oder `1/1000`Millisekunden.",
"pins.servoSetPulse|param|micros": "Impulsdauer in Mikrosekunden, z.B.: 1500",
"pins.servoSetPulse|param|name": "PIN-Name",
@ -156,10 +220,13 @@
"pins.servoWritePin|param|value": "Winkel oder Rotationsbeschleunigung, z.B.: 180,90,0",
"pins.setPull": "Stellt die Anziehungskraft des Pins ein.",
"pins.setPull|param|name": "Pin, auf dem der Pull-Modus aktiviert wird",
"pins.setPull|param|pull": "eine der mbed-Pull-Konfigurationen: PullUp, PullDown, PullNone ",
"pins.setPull|param|pull": "eine der mbed-Pull-Konfigurationen: PullUp, PullDown, PullNone",
"pins.sizeOf": "Ruft die Bytegröße im spezifierten Nummernformat ab.",
"pins.spiWrite": "Schreibe in den SPI-Slave und gebe die Antwort aus",
"pins.spiWrite|param|value": "Daten, die an den SPI-Slave geschickt werden sollen",
"serial": "Lesen und Schreiben von Daten über eine serielle Verbindung.",
"serial.delimiters": "Gibt die mit dem Begrenzer korrespondierende Zeichenfolge aus.",
"serial.onLineReceived": "Registriert ein Event, das ausgeführt wird, wenn eine Zeile empfangen wurde",
"serial.readLine": "Liest eine Textzeile aus der seriellen Schnittstelle.",
"serial.readUntil": "Liest aus eine Textzeile aus dem seriellen Anschluss und gibt den Puffer aus, wenn die Begrenzung erreicht wurde.",
"serial.readUntil|param|delimiter": "Text-Begrenzung, die die Textblöcke voneinander trennt",
@ -167,7 +234,7 @@
"serial.redirect|param|rx": "der neue Empfangs-Pin",
"serial.redirect|param|tx": "Der neue Übertragungs-Pin",
"serial.writeLine": "Gibt eine Zeile des Textes an die serielle",
"serial.writeNumber": " Gibt einen numerischen Wert an die serielle",
"serial.writeNumber": "Gibt einen numerischen Wert an die serielle",
"serial.writeString": "Sendet ein Stück Text über serielle Verbindung.",
"serial.writeValue": "Schreibt ein ``Namen: Wert`` Wertepaar auf die serielle Schnittstelle.",
"serial.writeValue|param|name": "Name des Wertestreams, z.B.: x",

View File

@ -1,20 +1,47 @@
{
"Math.randomBoolean|block": "Wähle zufälligen Wahr- oder Falsch-Wert",
"AcceleratorRange.EightG": "Der Bewegungssensor misst Kräfte bis 8g",
"AcceleratorRange.EightG|block": "8g",
"AcceleratorRange.FourG": "Der Bewegungssensor misst Kräfte bis 4g",
"AcceleratorRange.FourG|block": "4g",
"AcceleratorRange.OneG": "Der Bewegungssensor misst Kräfte bis 1g",
"AcceleratorRange.OneG|block": "1g",
"AcceleratorRange.TwoG": "Der Bewegungssensor misst Kräfte bis 2g",
"AcceleratorRange.TwoG|block": "2g",
"Gesture.Shake": "Wird erhöht, wenn geschüttelt",
"Gesture.Shake|block": "geschüttelt",
"LedSpriteProperty.Brightness|block": "Helligkeit",
"Math.randomBoolean|block": "wähle zufälligen Wahr- oder Falsch-Wert",
"Math|block": "Mathematik",
"Rotation.Pitch|block": "Winkel",
"String.charAt|block": "Zeichen an Position %pos aus|%this",
"String.compare|block": "vergleiche %this| mit %that",
"String.concat|block": "hänge %this| mit %other aneinander",
"String.fromCharCode|block": "Text aus char code %code",
"String.isEmpty|block": "%this| ist leer",
"String.length|block": "Länge von %VALUE",
"String.substr|block": "extrahiere aus %this|beginnend mit %start|%length Zeichen",
"String|block": "Zeichenfolge",
"basic.clearScreen|block": "Bildschirminhalt löschen",
"basic.forever|block": "dauerhaft",
"basic.pause|block": "Pausiere (ms) %pause",
"basic.showLeds|block": "Zeige LEDs",
"basic.showNumber|block": "Zeige|Nummer %number",
"basic.showLeds|block": "zeige LEDs",
"basic.showNumber|block": "zeige|Nummer %number",
"basic.showString|block": "Zeige|Zeichenfolge %text",
"basic|block": "Grundlagen",
"control.deviceName|block": "Gerätename",
"control.deviceSerialNumber|block": "Seriennnummer",
"control.eventSourceId|block": "%id",
"control.eventTimestamp|block": "Ereigniszeitstempel",
"control.eventValueId|block": "%id",
"control.eventValue|block": "Ereigniswert",
"control.inBackground|block": "im Hintergrund ausführen",
"control.onEvent|block": "wenn Ereignis|von Quelle %src=control_event_source_id|mit Wert %value=control_event_value_id",
"control.raiseEvent|block": "Ereignis auslösen|von Quelle %src=control_event_source_id|mit Wert %value=control_event_value_id",
"control.reset|block": "zurücksetzen",
"control.waitMicros|block": "Warte (µs)%micros",
"control|block": "Steuerung",
"game.addScore|block": "Ändere Spielstand um|%points",
"game.createSprite|block": "erzeuge Sprite an Position|x: %x|y:%y",
"game.gameOver|block": "Spiel beendet",
"game.score|block": "Spielstand",
"game.startCountdown|block": "Countdown| starten (ms) %duration",
@ -27,18 +54,18 @@
"input.compassHeading|block": "Kompassausrichtung (°)",
"input.lightLevel|block": "Lichtstärke",
"input.magneticForce|block": "Magnetkraft (µT) |%NAME",
"input.onButtonPressed|block": "Wenn Button|%NAME|gedrückt",
"input.onButtonPressed|block": "wenn Knopf|%NAME|gedrückt",
"input.onGesture|block": "wenn |%NAME",
"input.onPinPressed|block": "wenn pin %NAME|gedrückt",
"input.onPinReleased|block": "Wenn pin %NAME|released",
"input.pinIsPressed|block": "PIN %NAME|ist gedrückt",
"input.onPinPressed|block": "wenn Pin %NAME|gedrückt",
"input.onPinReleased|block": "wenn Pin %NAME|losgelassen",
"input.pinIsPressed|block": "Pin %NAME|ist gedrückt",
"input.rotation|block": "Rotation (°)|%NAME",
"input.runningTime|block": "Laufzeit (ms)",
"input.setAccelerometerRange|block": "Setze Bewegungsmesser|range %range",
"input.setAccelerometerRange|block": "setze Bewegungsmesser auf|%range",
"input.temperature|block": "Temperatur (°C)",
"input|block": "Eingabe",
"led.brightness|block": "Helligkeit",
"led.plotBarGraph|block": "zeichne Balkendiagramm des %value|bis %high",
"led.plotBarGraph|block": "zeichne Balkendiagramm von %value|bis %high",
"led.plot|block": "Zeichne|x %x|y %y",
"led.point|block": "Punkt|x %x|y %y",
"led.setBrightness|block": "Setze Helligkeit auf %value",
@ -49,27 +76,29 @@
"music.beat|block": "%fraction|Takt",
"music.changeTempoBy|block": "ändere die Geschwindigkeit (bpm)|%value",
"music.noteFrequency|block": "%note",
"music.playTone|block": "play|tone %note=device_note|for %duration=device_beat",
"music.rest|block": "rest(ms)|%duration=device_beat",
"music.playTone|block": "spiele|Note %note=device_note|für %duration=device_beat",
"music.rest|block": "pausiere (ms)|%duration=device_beat",
"music.ringTone|block": "Klingelton (Hz) |%note = Device_note",
"music.setTempo|block": "ändere Geschwindigkeit auf (bpm)|%value",
"music.tempo|block": "Geschwindkeit (bpm)",
"music|block": "Musik",
"pins.analogReadPin|block": "analog read|pin %name",
"pins.analogSetPeriod|block": "analog set period|pin %pin|to (µs)%micros",
"pins.analogWritePin|block": "analog write|pin %name|to %value",
"pins.digitalReadPin|block": "digital read|pin %name",
"pins.digitalWritePin|block": "digital write|pin %name|to %value",
"pins.i2cReadNumber|block": "i2c read number|at address %address|of format %format=i2c_sizeof",
"pins.i2cWriteNumber|block": "i2c write number|at address %address|with value %value|of format %format=i2c_sizeof",
"pins.map|block": "map %value|from low %fromLow|from high %fromHigh|to low %toLow|to high %toHigh",
"pins.onPulsed|block": "on|pin %pin|pulsed %pulse",
"pins.analogReadPin|block": "lese analoge Werte von|Pin %name",
"pins.analogSetPeriod|block": "setze Zeitraum für analogen|Pin %pin|auf (µs)%micros",
"pins.analogWritePin|block": "schreibe analogen|Pin %name|auf %value",
"pins.digitalReadPin|block": "lese digitale Werte von|Pin %name",
"pins.digitalWritePin|block": "schreibe digitalen Wert von|pin %name|auf %value",
"pins.i2cReadNumber|block": "lese Nummer aus I2C|auf Adresse %address|im Format %format=i2c_sizeof",
"pins.i2cWriteNumber|block": "schreibe Nummer aus I2C|auf Adresse %address|mit Wert %value|im Format %format=i2c_sizeof",
"pins.map|block": "verteile %value|von niedrig %fromLow|von hoch %fromHigh| bis niedrig %toLow|bis hoch %toHigh",
"pins.onPulsed|block": "wenn|Pin %pin|gepulst %pulse",
"pins.pulseDuration|block": "Impulsdauer (µs)",
"pins.servoSetPulse|block": "servo set pulse|pin %value|to (µs) %micros",
"pins.servoWritePin|block": "servo write|pin %name|to %value",
"pins.setPull|block": "set pull|pin %pin|to %pull",
"pins.spiWrite|block": "spi write %value",
"pins.pulseIn|block": "Impuls in (µs)|Pin %name|mit %value",
"pins.servoSetPulse|block": "setze den Puls von Servo an|Pin %value|auf (µs) %micros",
"pins.servoWritePin|block": "schreibe Servo an|Pin %name|auf %value",
"pins.setPull|block": "setze Anziehungskraft von|Pin %pin|auf %pull",
"pins.spiWrite|block": "schreibe %value in SPI",
"pins|block": "Pins",
"serial.delimiters|block": "%del",
"serial.readLine|block": "serial|read line",
"serial.readUntil|block": "serial|read until %delimiter=serial_delimiter_conv",
"serial.redirect|block": "serial|redirect to|TX %tx|RX %rx|at baud rate %rate",
@ -87,5 +116,7 @@
"{id:category}Math": "Mathematik",
"{id:category}Music": "Musik",
"{id:category}Pins": "Pins",
"{id:category}Serial": "Serielle"
"{id:category}Serial": "Serielle",
"{id:category}String": "Zeichenfolge",
"{id:category}Text": "Text"
}

View File

@ -1,31 +1,6 @@
{
"Math.abs": "",
"Math.abs|param|x": "",
"Math.max": "",
"Math.min": "",
"Math.pow": "",
"Math.pow|param|x": "",
"Math.pow|param|y": "",
"Math.random": "",
"Math.randomBoolean": "Génère une valeur « true » ou « false » au hasard, comme si vous lanciez une pièce de monnaie.",
"Math.sign": "",
"Math.sign|param|x": "",
"Math.sqrt": "",
"Math.sqrt|param|x": "",
"String.charAt": "",
"String.charAt|param|index": "",
"String.charCodeAt": "",
"String.charCodeAt|param|index": "",
"String.compare": "",
"String.compare|param|that": "",
"String.concat": "",
"String.concat|param|other": "",
"String.fromCharCode": "Construit une chaîne à partir du code ASCII d'un caractère donné.",
"String.isEmpty": "",
"String.length": "",
"String.substr": "",
"String.substr|param|length": "",
"String.substr|param|start": "",
"basic": "Permet daccéder aux fonctionnalités de base de la micro:bit.",
"basic.clearScreen": "Éteindre toutes les LEDs",
"basic.forever": "Répète le code indéfiniment en tâche de fond. A chaque itération, permet aux autres codes de sexécuter.",
@ -44,200 +19,63 @@
"basic.showString": "Afficher du texte à lécran, un caractère à la fois. Si la chaîne rentre sur lécran (c'est-à-dire une seule lettre), ne défile pas.",
"basic.showString|param|interval": "à quelle vitesse se déplacent les caractères ; par ex. : 150, 100, 200, -100",
"basic.showString|param|text": "le texte à faire défiler sur lécran, par exemple : « Bonjour ! »",
"control": "",
"control.assert": "",
"control.deviceName": "",
"control.deviceSerialNumber": "",
"control.eventSourceId": "",
"control.eventTimestamp": "",
"control.eventValue": "",
"control.eventValueId": "",
"control.inBackground": "Planifie le code qui sexécute en arrière-plan.",
"control.onEvent": "",
"control.panic": "",
"control.raiseEvent": "",
"control.raiseEvent|param|mode": "",
"control.raiseEvent|param|src": "",
"control.raiseEvent|param|value": "",
"control.reset": "Réinitialise le micro:bit de BBC.",
"control.runtimeWarning": "",
"control.waitMicros": "",
"control.waitMicros|param|micros": "nombre de microsecondes à attendre. par ex. : 4",
"game": "Un moteur de jeu avec une unique LED",
"game.addLife": "",
"game.addLife|param|lives": "",
"game.addLife|param|lives": "TODO",
"game.addScore": "Ajoute des points au score actuel",
"game.addScore|param|points": "nombre de points à changer, par ex. : 1",
"game.createSprite": "",
"game.createSprite|param|x": "",
"game.createSprite|param|y": "",
"game.currentTime": "",
"game.gameOver": "Affiche un animation de fin de jeu.",
"game.invalidSprite": "",
"game.isGameOver": "",
"game.isRunning": "",
"game.level": "",
"game.levelUp": "",
"game.life": "",
"game.removeLife": "",
"game.removeLife|param|life": "",
"game.removeLife|param|life": "TODO",
"game.score": "Obtient le score actuel",
"game.setLife": "",
"game.setLife|param|value": "",
"game.setLife|param|value": "TODO",
"game.setScore": "Définit la valeur du score actuel",
"game.setScore|param|value": "",
"game.showScore": "",
"game.startCountdown": "",
"game.startCountdown|param|ms": "",
"game.startStopwatch": "",
"images": "",
"images.createBigImage": "",
"images.createImage": "",
"input": "",
"input.acceleration": "",
"input.acceleration|param|dimension": "",
"input.buttonIsPressed": "",
"input.calibrate": "",
"input.compassHeading": "",
"input.lightLevel": "",
"input.magneticForce": "",
"input.magneticForce|param|dimension": "",
"input.onButtonPressed": "",
"input.onButtonPressed|param|body": "",
"input.onButtonPressed|param|button": "",
"input.onGesture": "",
"input.onGesture|param|body": "",
"input.onLogoDown": "",
"input.onLogoDown|param|body": "",
"input.onLogoUp": "",
"input.onLogoUp|param|body": "",
"input.onPinPressed": "",
"input.onPinPressed|param|body": "",
"input.onPinPressed|param|name": "",
"input.onPinReleased": "",
"input.onPinReleased|param|body": "",
"input.onPinReleased|param|name": "",
"input.onScreenDown": "",
"input.onScreenDown|param|body": "",
"input.onScreenUp": "",
"input.onScreenUp|param|body": "",
"input.onShake": "",
"input.onShake|param|body": "",
"input.pinIsPressed": "",
"input.pinIsPressed|param|name": "",
"input.rotation": "",
"input.rotation|param|kind": "",
"input.runningTime": "",
"input.setAccelerometerRange": "",
"input.setAccelerometerRange|param|range": "",
"input.temperature": "",
"led": "",
"led.brightness": "",
"led.enable": "",
"led.fadeIn": "",
"led.fadeIn|param|ms": "",
"led.fadeOut": "",
"led.fadeOut|param|ms": "",
"led.plot": "",
"led.plotAll": "",
"led.plotBarGraph": "",
"led.plotBarGraph|param|high": "",
"led.plotBarGraph|param|value": "",
"led.plot|param|x": "",
"led.plot|param|y": "",
"led.point": "",
"led.point|param|x": "",
"led.point|param|y": "",
"led.screenshot": "",
"led.setBrightness": "",
"led.setBrightness|param|value": "",
"led.setDisplayMode": "",
"led.setDisplayMode|param|mode": "",
"led.stopAnimation": "",
"led.toggle": "",
"led.toggleAll": "",
"led.toggle|param|x": "",
"led.toggle|param|y": "",
"led.unplot": "",
"led.unplot|param|x": "",
"led.unplot|param|y": "",
"music": "",
"music.beat": "",
"music.changeTempoBy": "",
"music.changeTempoBy|param|bpm": "",
"music.noteFrequency": "",
"music.noteFrequency|param|name": "",
"music.playTone": "",
"music.playTone|param|frequency": "",
"music.playTone|param|ms": "",
"game.setScore|param|value": "TODO",
"game.startCountdown": "Démarre un compte à rebours de jeu",
"game.startCountdown|param|ms": "durée du compte à rebours en millisecondes, par ex. : 10000",
"images": "Création, manipulation et affichage dimages LED.",
"images.createBigImage": "Crée une image à partir de 2 images.",
"images.createImage": "Crée une image qui sadapte aux dimensions de lécran LED.",
"input": "Événements et des données provenant de capteurs",
"input.acceleration|param|dimension": "TODO",
"input.calibrate": "Obsolète, le calibrage de la boussole est automatique.",
"input.compassHeading": "Obtient la direction actuelle du compas en degrés.",
"input.magneticForce|param|dimension": "TODO",
"input.onButtonPressed|param|body": "TODO",
"input.onButtonPressed|param|button": "TODO",
"input.onGesture|param|body": "TODO",
"input.onLogoDown|param|body": "TODO",
"input.onLogoUp|param|body": "TODO",
"input.onPinPressed": "Faire quelque chose lorsque vous appuyez sur une broche.",
"input.onPinPressed|param|body": "code à exécuter lorsque la broche est enfoncée",
"input.onPinPressed|param|name": "la broche qui doit être pressée",
"input.onPinReleased": "Faire quelque chose quand une broche est relâchée.",
"input.onPinReleased|param|body": "le code à exécuter lorsque la broche est relâchée",
"input.onPinReleased|param|name": "la broche qui doit être relâchée",
"input.onScreenDown|param|body": "TODO",
"input.onScreenUp|param|body": "TODO",
"input.onShake|param|body": "TODO",
"input.pinIsPressed|param|name": "broche utilisée pour détecter le contact",
"input.rotation|param|kind": "TODO",
"input.temperature": "Obtient la température en degrés Celsius (°C).",
"led": "Contrôle de lécran LED.",
"led.enable": "Active ou désactive laffichage",
"led.fadeIn|param|ms": "TODO",
"led.fadeOut|param|ms": "TODO",
"led.plotAll": "Allume toutes les LEDS",
"led.plotBarGraph|param|value": "valeur actuelle à tracer",
"led.plot|param|x": "TODO",
"led.plot|param|y": "TODO",
"led.point|param|x": "TODO",
"led.point|param|y": "TODO",
"led.setBrightness|param|value": "valeur de la luminosité, par ex. : 255, 127, 0",
"led.toggle|param|x": "TODO",
"led.toggle|param|y": "TODO",
"led.unplot|param|x": "TODO",
"led.unplot|param|y": "TODO",
"music.rest": "Repose (joue rien) pendant une durée spécifiée via broche '' P0''.",
"music.rest|param|ms": "",
"music.ringTone": "",
"music.ringTone|param|frequency": "",
"music.setTempo": "",
"music.setTempo|param|bpm": "",
"music.tempo": "",
"pins": "",
"pins.analogPitch": "",
"pins.analogPitch|param|frequency": "",
"pins.analogPitch|param|ms": "",
"pins.analogReadPin": "",
"pins.analogReadPin|param|name": "",
"pins.analogSetPeriod": "",
"pins.analogSetPeriod|param|micros": "",
"pins.analogSetPeriod|param|name": "",
"pins.analogSetPitchPin": "",
"pins.analogSetPitchPin|param|name": "",
"pins.analogWritePin": "",
"pins.analogWritePin|param|name": "",
"pins.analogWritePin|param|value": "",
"pins.createBuffer": "",
"pins.createBuffer|param|size": "",
"pins.digitalReadPin": "",
"pins.digitalReadPin|param|name": "",
"pins.digitalWritePin": "",
"pins.digitalWritePin|param|name": "",
"pins.digitalWritePin|param|value": "",
"pins.i2cReadBuffer": "",
"pins.i2cReadNumber": "",
"pins.i2cWriteBuffer": "",
"pins.i2cWriteNumber": "",
"pins.map": "",
"pins.map|param|fromHigh": "",
"pins.map|param|fromLow": "",
"pins.map|param|toHigh": "",
"pins.map|param|toLow": "",
"pins.map|param|value": "",
"pins.onPulsed": "",
"pins.pulseDuration": "",
"pins.pulseIn": "",
"pins.pulseIn|param|name": "",
"pins.pulseIn|param|value": "",
"pins.servoSetPulse": "",
"pins.servoSetPulse|param|micros": "",
"pins.servoSetPulse|param|name": "",
"pins.servoWritePin": "",
"pins.servoWritePin|param|name": "",
"pins.servoWritePin|param|value": "",
"pins.setPull": "",
"pins.setPull|param|name": "",
"pins.setPull|param|pull": "",
"pins.sizeOf": "",
"pins.spiWrite": "",
"pins.spiWrite|param|value": "",
"serial": "",
"serial.delimiters": "",
"serial.onLineReceived": "",
"serial.readLine": "",
"serial.readUntil": "",
"serial.readUntil|param|delimiter": "",
"serial.redirect": "",
"serial.redirect|param|rx": "",
"serial.redirect|param|tx": "",
"serial.writeLine": "",
"serial.writeNumber": "",
"serial.writeString": "",
"serial.writeValue": "",
"serial.writeValue|param|name": "",
"serial.writeValue|param|value": ""
"pins.analogPitch|param|frequency": "TODO",
"pins.analogPitch|param|ms": "TODO",
"pins.analogSetPitchPin|param|name": "TODO"
}

View File

@ -1,35 +1,21 @@
{
"LedSpriteProperty.Brightness|block": "luminosité",
"Math.randomBoolean|block": "choisir au hasard vrai ou faux",
"Math|block": "Maths",
"String.charAt|block": "",
"String.compare|block": "",
"String.concat|block": "",
"String.fromCharCode|block": "texte du code de charactère %code",
"String.isEmpty|block": "",
"String.length|block": "",
"String.substr|block": "",
"String|block": "Texte",
"basic.clearScreen|block": "effacer lécran",
"basic.forever|block": "toujours",
"basic.pause|block": "pause (ms) %pause",
"basic.showLeds|block": "montrer LEDs",
"basic.showNumber|block": "montrer|nombre %number",
"basic.showString|block": "montrer|texte %text",
"basic.showString|block": "afficher|texte %text",
"basic|block": "base",
"control.deviceName|block": "",
"control.deviceSerialNumber|block": "",
"control.eventSourceId|block": "",
"control.eventTimestamp|block": "",
"control.eventValueId|block": "",
"control.eventValue|block": "",
"control.inBackground|block": "exécuter en arrière-plan",
"control.onEvent|block": "",
"control.raiseEvent|block": "",
"control.reset|block": "remise à zéro",
"control.waitMicros|block": "attendre (µs) %micros",
"control|block": "contrôle",
"game.addScore|block": "changer le score par|%points",
"game.createSprite|block": "",
"game.gameOver|block": "fin du jeu",
"game.score|block": "score",
"game.startCountdown|block": "commencer compte à rebours|(ms) %duration",
@ -71,22 +57,15 @@
"music.tempo|block": "tempo (bpm)",
"music|block": "musique",
"pins.analogReadPin|block": "lire|la broche analogique %name",
"pins.analogSetPeriod|block": "",
"pins.analogWritePin|block": "",
"pins.digitalReadPin|block": "lire en numérique|broche %name",
"pins.digitalWritePin|block": "écrire en numérique|la broche %name|à %value",
"pins.i2cReadNumber|block": "i2c lire nombre|à ladresse %address|de format %format=i2c_sizeof",
"pins.i2cWriteNumber|block": "i2c écrire nombre|à ladresse %address|avec value %value|de format %format=i2c_sizeof",
"pins.map|block": "",
"pins.onPulsed|block": "lorsque|la broche %pin|est pulsée %pulse",
"pins.pulseDuration|block": "durée de limpulsion (µs)",
"pins.pulseIn|block": "",
"pins.servoSetPulse|block": "",
"pins.servoWritePin|block": "servo écrire|broche %name|à %value",
"pins.setPull|block": "",
"pins.spiWrite|block": "spi écrire %value",
"pins|block": "broches",
"serial.delimiters|block": "",
"serial.readLine|block": "série|lire ligne",
"serial.readUntil|block": "série|lire jusque %delimiter=serial_delimiter_conv",
"serial.redirect|block": "série|rediriger vers|TX %tx|RX %rx|au débit en baudes %rate",
@ -105,6 +84,5 @@
"{id:category}Music": "Musique",
"{id:category}Pins": "Broches",
"{id:category}Serial": "Communication Série",
"{id:category}String": "Texte",
"{id:category}Text": ""
"{id:category}String": "Texte"
}

View File

@ -275,7 +275,9 @@ declare namespace led {
declare enum PulseValue {
//% block=high
High = 4, // MICROBIT_PIN_EVT_PULSE_HI
//% block=low
Low = 5, // MICROBIT_PIN_EVT_PULSE_LO
}

View File

@ -61,18 +61,15 @@ namespace ImageMethods {
/**
* Scrolls an image .
* @param frameOffset x offset moved on each animation step, eg: 5, 1, -1
* @param frameOffset x offset moved on each animation step, eg: 1, 2, 5
* @param interval time between each animation step in milli seconds, eg: 200
*/
//% help=images/show-image weight=79 async blockNamespace=images
//% help=images/scroll-image weight=79 async blockNamespace=images
//% blockId=device_scroll_image block="scroll image %sprite|with offset %frameoffset|and interval (ms) %delay" blockGap=8
//% parts="ledmatrix"
void scrollImage(Image id, int frameOffset, int interval) {
MicroBitImage i(id);
if (i.getWidth() <= 5)
showImage(id, 0);
else
uBit.display.animate(i, interval, frameOffset, 0);
uBit.display.animate(i, interval, frameOffset, MICROBIT_DISPLAY_WIDTH - 1);
}

View File

@ -32,7 +32,9 @@ enum class AnalogPin {
};
enum class PulseValue {
//% block=high
High = MICROBIT_PIN_EVT_PULSE_HI,
//% block=low
Low = MICROBIT_PIN_EVT_PULSE_LO
};

View File

@ -53,10 +53,10 @@ declare interface Image {
/**
* Scrolls an image .
* @param frameOffset x offset moved on each animation step, eg: 5, 1, -1
* @param frameOffset x offset moved on each animation step, eg: 1, 2, 5
* @param interval time between each animation step in milli seconds, eg: 200
*/
//% help=images/show-image weight=79 async blockNamespace=images
//% help=images/scroll-image weight=79 async blockNamespace=images
//% blockId=device_scroll_image block="scroll image %sprite|with offset %frameoffset|and interval (ms) %delay" blockGap=8
//% parts="ledmatrix" shim=ImageMethods::scrollImage
scrollImage(frameOffset: number, interval: number): void;

View File

@ -1,4 +1,55 @@
{
"MesAlertEvent.DisplayToast|block": "display toast",
"MesAlertEvent.FindMyPhone|block": "find my phone",
"MesAlertEvent.PlayRingtone|block": "play ring tone",
"MesAlertEvent.PlaySound|block": "play sound",
"MesAlertEvent.RingAlarm2|block": "ring alarm 2",
"MesAlertEvent.RingAlarm3|block": "ring alarm 3",
"MesAlertEvent.RingAlarm4|block": "ring alarm 4",
"MesAlertEvent.RingAlarm5|block": "ring alarm 5",
"MesAlertEvent.RingAlarm6|block": "ring alarm 6",
"MesAlertEvent.RingAlarm|block": "ring alarm",
"MesAlertEvent.Vibrate|block": "vibrate",
"MesCameraEvent.LaunchPhotoMode|block": "launch photo mode",
"MesCameraEvent.LaunchVideoMode|block": "launch video mode",
"MesCameraEvent.StartVideoCapture|block": "start video capture",
"MesCameraEvent.StopPhotoMode|block": "stop photo mode",
"MesCameraEvent.StopVideoCapture|block": "stop video capture",
"MesCameraEvent.StopVideoMode|block": "stop video mode",
"MesCameraEvent.TakePhoto|block": "take photo",
"MesCameraEvent.ToggleFrontRear|block": "toggle front-rear",
"MesDeviceInfo.DisplayOff|block": "display off",
"MesDeviceInfo.DisplayOn|block": "display on",
"MesDeviceInfo.IncomingCall|block": "incoming call",
"MesDeviceInfo.IncomingMessage|block": "incoming message",
"MesDeviceInfo.OrientationLandscape|block": "orientation landscape",
"MesDeviceInfo.OrientationPortrait|block": "orientation portrait",
"MesDeviceInfo.Shaken|block": "shaken",
"MesDpadButtonInfo.ADown|block": "A down",
"MesDpadButtonInfo.AUp|block": "A up",
"MesDpadButtonInfo.BDown|block": "B down",
"MesDpadButtonInfo.BUp|block": "B up",
"MesDpadButtonInfo.CDown|block": "C down",
"MesDpadButtonInfo.CUp|block": "C up",
"MesDpadButtonInfo.DDown|block": "D down",
"MesDpadButtonInfo.DUp|block": "D up",
"MesDpadButtonInfo._1Down|block": "1 down",
"MesDpadButtonInfo._1Up|block": "1 up",
"MesDpadButtonInfo._2Down|block": "2 down",
"MesDpadButtonInfo._2Up|block": "2 up",
"MesDpadButtonInfo._3Down|block": "3 down",
"MesDpadButtonInfo._3Up|block": "3 up",
"MesDpadButtonInfo._4Down|block": "4 down",
"MesDpadButtonInfo._4Up|block": "4 up",
"MesRemoteControlEvent.forward|block": "forward",
"MesRemoteControlEvent.nextTrack|block": "next track",
"MesRemoteControlEvent.pause|block": "pause",
"MesRemoteControlEvent.play|block": "play",
"MesRemoteControlEvent.previousTrack|block": "previous track",
"MesRemoteControlEvent.rewind|block": "rewind",
"MesRemoteControlEvent.stop|block": "stop",
"MesRemoteControlEvent.volumeDown|block": "volume down",
"MesRemoteControlEvent.volumeUp|block": "volume up",
"devices.onGamepadButton|block": "on gamepad button|%NAME",
"devices.onNotified|block": "on notified|%event",
"devices.onSignalStrengthChanged|block": "on signal strength changed",

View File

@ -33,7 +33,7 @@ namespace radio {
* received packet from the radio queue.
*/
//% help=radio/on-data-packet-received
//% mutate=true
//% mutate=objectdestructuring
//% mutateText=Packet
//% mutateDefaults="receivedNumber;receivedString:name,receivedNumber:value;receivedString"
//% blockId=radio_on_packet block="on radio received" blockGap=8

View File

@ -1,6 +1,6 @@
{
"name": "pxt-microbit",
"version": "0.6.8",
"version": "0.6.21",
"description": "micro:bit target for PXT",
"keywords": [
"JavaScript",
@ -26,12 +26,14 @@
"docs/*/*.md",
"docs/*/*/*.md"
],
"main": "built/pxtrequire.js",
"typings": "built/pxtrequire.d.ts",
"devDependencies": {
"typescript": "^1.8.7"
},
"dependencies": {
"pxt-core": "0.5.62",
"typescript": "^1.8.7",
"less": "^2.6.0",
"semantic-ui-less": "^2.2.4"
},
"dependencies": {
"pxt-core": "0.5.81"
}
}

View File

@ -187,6 +187,7 @@
"privacyUrl": "https://go.microsoft.com/fwlink/?LinkId=521839",
"termsOfUseUrl": "https://go.microsoft.com/fwlink/?LinkID=206977",
"githubUrl": "https://github.com/Microsoft/pxt-microbit",
"projectGallery": "projects",
"boardName": "micro:bit",
"sideDoc": "getting-started",
"browserSupport": [