Compare commits
51 Commits
Author | SHA1 | Date | |
---|---|---|---|
0590e74cc0 | |||
76edc1290c | |||
3b66827d8a | |||
83bd1ed3e1 | |||
07b07a5a3f | |||
f46c23fb92 | |||
2e9ad0ad92 | |||
68cbb963fc | |||
1c1e960252 | |||
077ecaab87 | |||
3111960ecf | |||
2f203d68d1 | |||
aeb3b6f864 | |||
ed8aaf8bda | |||
c191cdf7ec | |||
67eb1d3b19 | |||
6a13b9737e | |||
1ec7e67fb0 | |||
c3253e24fc | |||
326cd7d0c3 | |||
804cc8c091 | |||
64ff568597 | |||
4196ba6632 | |||
26626d2a2a | |||
b70a2fc096 | |||
9791a02c7e | |||
89ceeefc32 | |||
91235d2377 | |||
a805d7b8a8 | |||
89fdbcdc4f | |||
92d1d2ffc3 | |||
82c9af836f | |||
da90401fe6 | |||
315a12dd8b | |||
72ec2d617e | |||
4d9ae63831 | |||
3eab21cff1 | |||
5a37385d14 | |||
9fa412ff6f | |||
3f7fbb70ba | |||
20189a709b | |||
111b321722 | |||
b8fe8f9294 | |||
7b478c4c38 | |||
a68e1a611d | |||
b3b2944b46 | |||
c809ee4fdf | |||
8e67e69602 | |||
0b508e37b1 | |||
e1a3aca9f8 | |||
bbe93ae9a2 |
@ -1,16 +0,0 @@
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@codethemicrobit" />
|
||||
<meta name="twitter:title" content="code the micro:bit" />
|
||||
<meta name="twitter:description" content="Blocks+JavaScript for programming your micro:bit" />
|
||||
<meta name="twitter:image" content="https://az851932.vo.msecnd.net/pub/drbwxcth" />
|
||||
|
||||
<meta property="og:title" content="micro:bit editor" />
|
||||
<meta property="og:description" content="Blocks+JavaScript for programming your micro:bit" />
|
||||
<meta property="og:site_name" content="code the micro:bit" />
|
||||
<meta property="og:image" content="https://az851932.vo.msecnd.net/pub/drbwxcth" />
|
||||
<!--
|
||||
Canonical URL needs to wait until main release is updated.
|
||||
<meta property="og:url" content="https://codethemicrobit.com" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="fb:app_id" content="" />
|
||||
-->
|
@ -1,21 +0,0 @@
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@codethemicrobit" />
|
||||
<meta name="twitter:title" content="@name@" />
|
||||
<meta name="twitter:description" content="@description@" />
|
||||
<meta name="twitter:image" content="@cardLogo@" />
|
||||
|
||||
<meta property="og:title" content="@name@" />
|
||||
<meta property="og:site_name" content="code the micro:bit" />
|
||||
<meta property="og:description" content="@description@" />
|
||||
<meta property="og:image" content="@cardLogo@" />
|
||||
<!--
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="fb:app_id" content="" />
|
||||
-->
|
||||
|
||||
<link rel="apple-touch-icon" href="@appLogo@">
|
||||
<link rel="icon" type="image/png" href="@appLogo@">
|
||||
<link rel="mask-icon" href="https://az851932.vo.msecnd.net/pub/zwxazere/safari-pinned-tab.svg" color="#000000">
|
||||
<link rel="shortcut icon" href="@appLogo@">
|
||||
<meta name="theme-color" content="@accentColor@">
|
||||
|
@ -1,5 +0,0 @@
|
||||
#root .avatar .avatar-image {
|
||||
background-image: url(https://az851932.vo.msecnd.net/pub/jovrytni/microbit.simplified.svg);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
BIN
docs/favicon.ico
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1,3 +1,3 @@
|
||||
{
|
||||
"appref": "v0.5.37"
|
||||
"appref": "v0.5.54"
|
||||
}
|
||||
|
BIN
docs/static/blockly/media/1x1.gif
vendored
Before Width: | Height: | Size: 43 B |
BIN
docs/static/blockly/media/click.mp3
vendored
BIN
docs/static/blockly/media/click.ogg
vendored
BIN
docs/static/blockly/media/click.wav
vendored
BIN
docs/static/blockly/media/delete.mp3
vendored
BIN
docs/static/blockly/media/delete.ogg
vendored
BIN
docs/static/blockly/media/delete.wav
vendored
BIN
docs/static/blockly/media/disconnect.mp3
vendored
BIN
docs/static/blockly/media/disconnect.ogg
vendored
BIN
docs/static/blockly/media/disconnect.wav
vendored
BIN
docs/static/blockly/media/handclosed.cur
vendored
Before Width: | Height: | Size: 326 B |
BIN
docs/static/blockly/media/handdelete.cur
vendored
Before Width: | Height: | Size: 766 B |
BIN
docs/static/blockly/media/handopen.cur
vendored
Before Width: | Height: | Size: 198 B |
BIN
docs/static/blockly/media/quote0.png
vendored
Before Width: | Height: | Size: 796 B |
BIN
docs/static/blockly/media/quote1.png
vendored
Before Width: | Height: | Size: 738 B |
BIN
docs/static/blockly/media/sprites.png
vendored
Before Width: | Height: | Size: 4.2 KiB |
74
docs/static/blockly/media/sprites.svg
vendored
@ -1,74 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="96px" height="124px">
|
||||
<style type="text/css">
|
||||
#background {
|
||||
fill: none;
|
||||
}
|
||||
.arrows {
|
||||
fill: #000;
|
||||
stroke: none;
|
||||
}
|
||||
.selected>.arrows {
|
||||
fill: #fff;
|
||||
}
|
||||
.checkmark {
|
||||
fill: #000;
|
||||
font-family: sans-serif;
|
||||
font-size: 10pt;
|
||||
text-anchor: middle;
|
||||
}
|
||||
.trash {
|
||||
fill: #BDCECF;
|
||||
}
|
||||
.zoom {
|
||||
fill: none;
|
||||
stroke: #BDCECF;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
}
|
||||
.zoom>.center {
|
||||
fill: #BDCECF;
|
||||
stroke-width: 0;
|
||||
}
|
||||
</style>
|
||||
<rect id="background" width="96" height="124" x="0" y="0" />
|
||||
|
||||
<g>
|
||||
<path class="arrows" d="M 13,1.5 13,14.5 1.74,8 z" />
|
||||
<path class="arrows" d="M 17.5,3 30.5,3 24,14.26 z" />
|
||||
<path class="arrows" d="M 35,1.5 35,14.5 46.26,8 z" />
|
||||
</g>
|
||||
<g class="selected" transform="translate(0, 16)">
|
||||
<path class="arrows" d="M 13,1.5 13,14.5 1.74,8 z" />
|
||||
<path class="arrows" d="M 17.5,3 30.5,3 24,14.26 z" />
|
||||
<path class="arrows" d="M 35,1.5 35,14.5 46.26,8 z" />
|
||||
</g>
|
||||
|
||||
<text class="checkmark" x="55.5" y="28">✓</text>
|
||||
|
||||
<g class="trash">
|
||||
<path d="M 2,41 v 6 h 42 v -6 h -10.5 l -3,-3 h -15 l -3,3 z" />
|
||||
<rect width="36" height="20" x="5" y="50" />
|
||||
<rect width="36" height="42" x="5" y="50" rx="4" ry="4" />
|
||||
</g>
|
||||
|
||||
<g class="zoom">
|
||||
<circle r="11.5" cx="16" cy="108" />
|
||||
<circle r="4.3" cx="16" cy="108" class="center" />
|
||||
<path d="m 28,108 h3" />
|
||||
<path d="m 1,108 h3" />
|
||||
<path d="m 16,120 v3" />
|
||||
<path d="m 16,93 v3" />
|
||||
</g>
|
||||
|
||||
<g class="zoom">
|
||||
<circle r="15" cx="48" cy="108" />
|
||||
<path d="m 48,101.6 v12.8" />
|
||||
<path d="m 41.6,108 h12.8" />
|
||||
</g>
|
||||
|
||||
<g class="zoom">
|
||||
<circle r="15" cx="80" cy="108" />
|
||||
<path d="m 73.6,108 h12.8" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
docs/static/icons/favicon.ico
vendored
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
BIN
docs/static/mb/device/usb-osx-dnd.png
vendored
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 50 KiB |
175
libs/core/_locales/de/core-jsdoc-strings.json
Normal file
@ -0,0 +1,175 @@
|
||||
{
|
||||
"Math.randomBoolean": "Erzeugt zufällig einen \"wahr\" oder \"falsch\"-Wert, wie bei einem Münzwurf.",
|
||||
"String.fromCharCode": "Erstelle Sie eine Zeichenfolge aus dem angegebenen ASCII-Zeichencode.",
|
||||
"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.",
|
||||
"basic.pause": "Pausiere für die angegebene Zeit in Millisekunden",
|
||||
"basic.pause|param|ms": "wie lange pausieren, z.B.: 100, 200, 500, 1000, 2000",
|
||||
"basic.plotLeds": "Zeichnet ein Bild auf dem LED-Bildschirm.",
|
||||
"basic.plotLeds|param|leds": "Muster der LEDs, die ein-/ und ausgeschaltet werden",
|
||||
"basic.showAnimation": "Zeigt eine Abfolge von LED-Anzeigen als Animation.",
|
||||
"basic.showAnimation|param|interval": "Zeit in Millisekunden zwischen jedem Neuzeichnen",
|
||||
"basic.showAnimation|param|leds": "Muster der LEDs, die ein-/ und ausgeschaltet werden",
|
||||
"basic.showLeds": "Zeichnet ein Bild auf dem LED-Bildschirm.",
|
||||
"basic.showLeds|param|interval": "Zeit in Millisekunden, die nach der Zeichnung gewartet wird",
|
||||
"basic.showLeds|param|leds": "Muster der LEDs, die ein- und ausgeschaltet werden",
|
||||
"basic.showNumber": "Zeige eine Nummer auf dem Display. Wenn die Nummer auf das Display passt (es sich also um eine einstellige Zahl handelt), scrolle nicht weiter.",
|
||||
"basic.showNumber|param|interval": "Scroll-Geschwindigkeit; z.B. 150, 100, 200,-100",
|
||||
"basic.showString": "Zeige Text auf dem Display an, Buchstabe für Buchstabe. Wenn die Zeichenfolge in das Display passt (also wenn es sich um einen einzelnen Buchstaben handelt), scrolle nicht weiter.",
|
||||
"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.inBackground": "Plant Code, der im Hintergrund wiedergegeben wird.",
|
||||
"control.reset": "Seit den mini zurück.",
|
||||
"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.addScore": "Fügt zum aktuellen Spielstand Punkte hinzu",
|
||||
"game.addScore|param|points": "Anzahl von zu verändernden Punkten, z.B.: 1",
|
||||
"game.gameOver": "Gibt über eine Animation ein Spiel wieder.",
|
||||
"game.score": "Ruft den aktuellen Punktestand ab",
|
||||
"game.setScore": "Setzt den aktuellen Wert des Spielstands",
|
||||
"game.setScore|param|value": "TODO",
|
||||
"game.startCountdown": "Startet einen Spiel-Countdown",
|
||||
"game.startCountdown|param|ms": "Countdown-Dauer in Millisekunden, z.B.: 10000",
|
||||
"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.",
|
||||
"input": "Ereignisse und Daten der Sensoren",
|
||||
"input.acceleration": "Holt den Beschleunigungswert in Milli-Erdanziehung (wenn das Board flach mit dem Display nach oben liegt, X = 0, y = 0 und Z =-1024)",
|
||||
"input.acceleration|param|dimension": "TODO",
|
||||
"input.buttonIsPressed": "Erhalte den Sie den Tastenstatus (gepresst oder nicht) für ``A`` und ``B``.",
|
||||
"input.calibrate": "Veraltet, Kompasskalibrierung erfolgt automatisch.",
|
||||
"input.compassHeading": "Holt die aktuelle Kompassrichtung in Grad.",
|
||||
"input.lightLevel": "Liest die Lichtintensität auf dem LED-Bildschirm im Bereich von ``0`` (dunkel) und `` 255`` (hell).",
|
||||
"input.magneticForce": "Ruft den Wert der Magnetkraft in ``Mikro-Tesla`` (``µT``) ab. Diese Funktion wird im Simulator nicht unterstützt.",
|
||||
"input.magneticForce|param|dimension": "TODO",
|
||||
"input.onButtonPressed": "Tue etwas, wenn eine Taste (``A``, ``B`` oder ``A + B``) gedrückt wird",
|
||||
"input.onButtonPressed|param|body": "TODO",
|
||||
"input.onButtonPressed|param|button": "TODO",
|
||||
"input.onGesture": "Mache etwas, wenn eine Geste gemacht wird (wie den mini zu schütteln).",
|
||||
"input.onGesture|param|body": "TODO",
|
||||
"input.onLogoDown": "Fügt Code hinzu, der ausgeführt wird, wenn das Logo nach unten zeigt und das Board vertikal ausgerichtet ist.",
|
||||
"input.onLogoDown|param|body": "TODO",
|
||||
"input.onLogoUp": "Fügt Code hinzu, der ausgeführt wird, wenn das Logo nach oben zeigt und das Board vertikal ausgerichtet ist.",
|
||||
"input.onLogoUp|param|body": "TODO",
|
||||
"input.onPinPressed": "Mache etwas, wenn eine Pin gehalten wird.",
|
||||
"input.onPinPressed|param|body": "Code, der ausführt wird, wenn ein Pin gehalten wird",
|
||||
"input.onPinPressed|param|name": "Der Pin, der gehalten werden muss",
|
||||
"input.onPinReleased": "Mache etwas, wenn der Pin losgelassen wird.",
|
||||
"input.onPinReleased|param|body": "Code, der ausgeführt werden soll, wenn der Pin losgelassen wird",
|
||||
"input.onPinReleased|param|name": "Der Pin, der losgelassen werden muss",
|
||||
"input.onScreenDown": "Hängt Code an, der ausgeführt wird, wenn der Bildschirm nach unten zeigt.",
|
||||
"input.onScreenDown|param|body": "TODO",
|
||||
"input.onScreenUp": "Hängt Code an, der ausgeführt wird, wenn der Bildschirm nach oben zeigt.",
|
||||
"input.onScreenUp|param|body": "TODO",
|
||||
"input.onShake": "Hängt Code an, der ausgeführt wird, wenn der mini geschüttelt wird.",
|
||||
"input.onShake|param|body": "TODO",
|
||||
"input.pinIsPressed": "Ruft den Pin-Zustand (gehalten oder nicht) ab. Die Erdung muss gehalten werden, um den Stromkreis zu schließen.",
|
||||
"input.pinIsPressed|param|name": "Pin, der verwendet wird, um eine Berührung zu erkennen",
|
||||
"input.rotation": "Die Neigung und Drehung des mini Drehung auf ``X-Achse``oder ``Y-Achse``, in Grad.",
|
||||
"input.rotation|param|kind": "TODO",
|
||||
"input.runningTime": "Ruft die Anzahl der Millisekunden auf, die seit dem Einschalten vergangen sind.",
|
||||
"input.setAccelerometerRange": "Legt die Stichprobenbereich des Beschleunigungssensors in Schwerkraft fest.",
|
||||
"input.setAccelerometerRange|param|range": "Ein Wert, der die maximale Stärke der gemessenen Beschleunigung beschreibt",
|
||||
"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.fadeIn": "Blendet die Bildschirmanzeige ein.",
|
||||
"led.fadeIn|param|ms": "TODO",
|
||||
"led.fadeOut": "Blendet die Bildschirmhelligkeit aus.",
|
||||
"led.fadeOut|param|ms": "TODO",
|
||||
"led.plot": "Schalte die angegebene LED mit Hilfe von X- und Y-Koordinaten ein (X ist horizontal, Y ist vertikal). (0,0) ist die obere linke Ecke.",
|
||||
"led.plotAll": "Schaltet alle LEDs an",
|
||||
"led.plotBarGraph": "Zeigt ein vertikales Balkendiagramm an, basierend auf dem `Wert`und dem `Hoch`-Wert. Wenn `Hoch`0 ist, wird das Diagramm automatisch angepasst.",
|
||||
"led.plotBarGraph|param|high": "maximalen Wert. Wenn dieser 0 ist, wird der Maximalwert automatisch angepasst, z.B.: 0",
|
||||
"led.plotBarGraph|param|value": "aktueller Wert zum Darstellen",
|
||||
"led.plot|param|x": "TODO",
|
||||
"led.plot|param|y": "TODO",
|
||||
"led.point": "Ruft den An/Aus-Status einer vorgegebenen LED mittels X-/Y-Koordinaten ab. (0,0) ist oben links.",
|
||||
"led.point|param|x": "TODO",
|
||||
"led.point|param|y": "TODO",
|
||||
"led.screenshot": "Macht einen Screenshot vom LED-Bildschirm und gibt ein Bild aus.",
|
||||
"led.setBrightness": "Lege die Helligkeit des Bildschirms fest, von 0 (aus) bis 255 (volle Helligkeit).",
|
||||
"led.setBrightness|param|value": "Helligkeitswert, z.B.: 255, 127, 0",
|
||||
"led.setDisplayMode": "Legt den Anzeigemodus von Wiedergabe-LEDs zwischen Schwarz und Weiß und Graustufen fest.",
|
||||
"led.setDisplayMode|param|mode": "TODO",
|
||||
"led.stopAnimation": "Bricht die aktuelle Animation ab und löscht andere ausstehende Animationen.",
|
||||
"led.toggle": "Schaltet ein bestimmtes Pixel ein",
|
||||
"led.toggleAll": "Invertiert die aktuelle LED-Anzeige",
|
||||
"led.toggle|param|x": "TODO",
|
||||
"led.toggle|param|y": "TODO",
|
||||
"led.unplot": "Schalte die angegebene LED mit x-und y-Koordinaten ab (X ist horizontal, y ist vertikal). (0,0) ist oben links.",
|
||||
"led.unplot|param|x": "TODO",
|
||||
"led.unplot|param|y": "TODO",
|
||||
"music": "Generierung von von Musik durch Pin ``P0``.",
|
||||
"music.beat": "Gibt die Dauer eines Taktes in Milli-Sekunden aus",
|
||||
"music.changeTempoBy": "Ändere die Geschwindigkeit um den angegebenen Betrag",
|
||||
"music.changeTempoBy|param|bpm": "Die Änderung in Schlägen pro Minute auf das Tempo, z.B.: 20",
|
||||
"music.noteFrequency": "Ruft die Frequenz einer Note ab.",
|
||||
"music.noteFrequency|param|name": "der Name der Notiz",
|
||||
"music.playTone": "Spielt einen Ton für den angegebenen Zeitraum über Pin ``P0`` ab.",
|
||||
"music.playTone|param|frequency": "Tonhöhe des abzuspielenden Tones in Hertz (Hz)",
|
||||
"music.playTone|param|ms": "Tondauer in Millisekunden (ms)",
|
||||
"music.rest": "Ruht (spielt nichts) für eine bestimmte Zeit auf Pin ``P0``.",
|
||||
"music.rest|param|ms": "Restdauer in Millisekunden (ms)",
|
||||
"music.ringTone": "Spielt einen Ton über Pin ``P0``.",
|
||||
"music.ringTone|param|frequency": "Tonhöhe des abzuspielenden Tones in Hertz (Hz)",
|
||||
"music.setTempo": "Legt die Geschwindigkeit auf den angegebenen Wert fest.",
|
||||
"music.setTempo|param|bpm": "Die neue Geschwindigkeit in Schlägen pro Minute, z.B.: 120",
|
||||
"music.tempo": "Gibt die Geschwindigkeit in Schlägen pro Minute aus. Die Geschwindigkeit ist Schnelligkeit (Bpm = Beats pro Minute), in der Töne abgespielt werden. Je größer der Wert, desto schneller werden die Töne abgespielt.",
|
||||
"pins": "Steuere die Stromstärke über die Pins für analoge/digitale Signale, Servos, I2C,...",
|
||||
"pins.analogPitch": "Gibt ein Pulsweiten Modulation (PWM)-Signal über den aktuellen Pitch-Pin. Benutze `analog set pitch pin`, um den Pitch-Pin festzulegen.",
|
||||
"pins.analogPitch|param|frequency": "TODO",
|
||||
"pins.analogPitch|param|ms": "TODO",
|
||||
"pins.analogReadPin": "Lese den Anschlusswert als Analog aus, d. h. als einen Wert zwischen 0 und 1023.",
|
||||
"pins.analogReadPin|param|name": "Pin, auf den geschrieben werden soll",
|
||||
"pins.analogSetPeriod": "Stellt die Pulsweite Modulation (PWM) des Analogausganges auf den angegebenen Wert in ** Mikrosekunden ** oder `1/1000` Millisekunden ein.\nWenn dieser Pin nicht als einen Analogausgang (mit `analog write pin`) konfiguriert ist, hat der Vorgang keine Auswirkungen.",
|
||||
"pins.analogSetPeriod|param|micros": "Zeit in Mikrosekunden. z.B.: 20000",
|
||||
"pins.analogSetPeriod|param|name": "analoger Pin, der zeitlich festgelegt werden soll",
|
||||
"pins.analogSetPitchPin": "Setzt den genutzten Pin, wenn `pins->analog pitch`angewendet wird.",
|
||||
"pins.analogSetPitchPin|param|name": "TODO",
|
||||
"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.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.i2cReadNumber": "Lese eine Nummer aus einer 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",
|
||||
"pins.map|param|fromLow": "die untere Grenze des aktuellen Wertebereichs",
|
||||
"pins.map|param|toHigh": "die Obergrenze des Wertezielbereichs, z.B.: 4",
|
||||
"pins.map|param|toLow": "die Untergrenze des Wertezielbereichs",
|
||||
"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.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",
|
||||
"pins.servoWritePin": "Schreibt einen Wert in den Servo, der die Welle entsprechend kontroliert. Auf einem Standard-Servo wird so der Winkel der Welle (in Grad) eingestellt, sodass sich die Welle entsprechend anpasst. Auf einem kontinuierlich drehenden Servo wird dadurch die Geschwindigkeit des Servos festgelegt, wobei ``0``die volle Geschwindigkeit in eine Richtung darstellt, ``180``die volle Geschwindigkeit in die andere, und ein Wert von ``90`` einen Stillstand erzeugt.",
|
||||
"pins.servoWritePin|param|name": "Pin, auf den geschrieben werden soll",
|
||||
"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.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.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",
|
||||
"serial.redirect": "Konfiguriert dynamisch die serielle Instanz, damit sie andere Pins als USBTX und USBRX benutzt.",
|
||||
"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.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",
|
||||
"serial.writeValue|param|value": "Schreiben"
|
||||
}
|
@ -1,92 +1,91 @@
|
||||
{
|
||||
"Math.randomBoolean":"Erzeugt einen \"echten\" oder \"falschen\" Wert zufällig, wie eine Münze werfen.",
|
||||
"String.fromCharCode":"Machen Sie eine Zeichenfolge aus den angegebenen ASCII-Zeichencode.",
|
||||
"basic":"Bietet Zugriff auf grundlegende Mikro: Bit-Funktionalität.",
|
||||
"basic.clearScreen":"Schalten Sie alle LEDs",
|
||||
"basic.forever":"Den Code für immer im Hintergrund wiederholt. Bei jeder Iteration können andere Codes ausgeführt.",
|
||||
"basic.pause":"Pause für die angegebene Zeit in Millisekunden",
|
||||
"basic.plotLeds":"Zeichnet ein Bild auf dem LED-Bildschirm.",
|
||||
"basic.showAnimation":"Zeigt eine Folge von LED-Screens als Animation.",
|
||||
"basic.showLeds":"Zeichnet ein Bild auf dem LED-Bildschirm.",
|
||||
"basic.showNumber":"Blättern Sie eine Zahl auf dem Bildschirm. Wenn die Zahl auf dem Bildschirm passt (d. h. eine einzelne Ziffer), nicht scrollen.",
|
||||
"basic.showString":"Text auf dem Display, ein Zeichen zu einem Zeitpunkt anzeigen. Wenn die Zeichenfolge auf dem Bildschirm passt (d. h. einen Buchstaben), wird kein Bildlauf.",
|
||||
"control":"Laufzeit und Ereignis-Dienstprogramme.",
|
||||
"control.inBackground":"Zeitpläne codieren, die im Hintergrund laufen.",
|
||||
"control.reset":"Das BBC-Mikro: Bit setzt.",
|
||||
"game":"Eine Einzel-LED-Sprite-game-engine",
|
||||
"game.addScore":"Den aktuellen Punktestand hinzugefügt Punkte",
|
||||
"game.gameOver":"Zeigt ein Spiel über Animation.",
|
||||
"game.score":"Ruft den aktuellen Punktestand",
|
||||
"game.setScore":"Legt den aktuellen Wert der Partitur",
|
||||
"game.startCountdown":"Startet einen Spiel Countdowntimer",
|
||||
"images":"Erstellung, Bearbeitung und Anzeige LED-Bilder.",
|
||||
"images.createBigImage":"Erzeugt ein Bild mit 2 Bildern.",
|
||||
"images.createImage":"Erstellt ein Bild, das passt auf dem LED-Bildschirm.",
|
||||
"input":"Ereignisse und Daten von Sensoren",
|
||||
"input.acceleration":"Der Beschleunigungswert in Milli-Gravitys zu bekommen (wenn das Board legt flach mit dem Bildschirm auf, X = 0, y = 0 und Z =-1024)",
|
||||
"input.buttonIsPressed":"Erhalten Sie den Zustand der Schaltfläche (gepresst oder nicht) für '' ein '' und '' B''.",
|
||||
"input.calibrate":"Veraltet, Kompass Kalibrierung erfolgt automatisch.",
|
||||
"input.compassHeading":"Erhalten Sie die aktuellen Kompass-Kompass-Kurs in Grad.",
|
||||
"input.lightLevel":"Liest die Lichtintensität auf dem LED-Bildschirm in einem Bereich von '' 0'' (dunkel) bis cm 255 cm hell angewendet.",
|
||||
"input.magneticForce":"Rufen Sie den Magnetkraft-Wert in cm Mikro-Tesla '' ('' µT''). Diese Funktion wird nicht im Simulator unterstützt.",
|
||||
"input.onButtonPressed":"Etwas zu tun, wenn eine ('' A'', '' B'' oder beide '' A + B'') gedrückt ist",
|
||||
"input.onGesture":"Fügt Code ausgeführt, wenn der Bildschirm nach oben.",
|
||||
"input.onLogoDown":"Fügt Code ausgeführt, wenn das Logo orientiert sich nach unten und das Board vertikal ist.",
|
||||
"input.onLogoUp":"Fügt Code ausgeführt, wenn das Logo orientiert sich nach oben und das Board vertikal ist.",
|
||||
"input.onPinPressed":"Tun Sie etwas, wenn eine Pin ('' P0'', '' P1'' oder beide '' P2'') gedrückt wird.",
|
||||
"input.onScreenDown":"Fügt Code ausgeführt, wenn der Bildschirm ist nach unten.",
|
||||
"input.onScreenUp":"Fügt Code ausgeführt, wenn der Bildschirm nach oben.",
|
||||
"input.onShake":"Fügt Code ausgeführt, wenn das Gerät geschüttelt wird.",
|
||||
"input.pinIsPressed":"Holen Sie sich den Pin-Zustand (gepresst oder nicht). Verlangt, die behaupten, die Schaltung zu schließen.",
|
||||
"input.rotation":"Die Tonhöhe des Geräts, Rotation entlang der '' x-Achse '' in Grad.",
|
||||
"input.runningTime":"Ruft die Anzahl der Millisekunden seit macht auf vergangen.",
|
||||
"input.setAccelerometerRange":"Legt den Beschleunigungsmesser Beispiel in Schwerkräfte.",
|
||||
"input.temperature":"Ruft die Temperatur in Celsius Grad (° C).",
|
||||
"led":"Steuerung von LED-Bildschirm.",
|
||||
"led.brightness":"Steigen Sie die Helligkeit des Bildschirms von 0 () bis 255 (volle hell).",
|
||||
"led.fadeIn":"Anzeige auf dem Bildschirm eingeblendet wird.",
|
||||
"led.fadeOut":"Die Helligkeit des Bildschirms ausgeblendet.",
|
||||
"led.plot":"Schalten Sie den angegebenen LED mit x \/ y-Koordinaten (X ist horizontal, y ist vertikal). (0,0) ist oben links.",
|
||||
"led.plotAll":"Schaltet alle LEDS",
|
||||
"led.plotBarGraph":"Zeigt eine vertikale Balkendiagramm anhand der 'Wert' und 'hoch' Wert.\nWenn 'hoch' ist 0, das Diagramm wird automatisch angepasst.",
|
||||
"led.point":"Erhalten Sie den ein-\/Zustand der angegebenen LED mit x \/ y-Koordinaten. (0,0) ist oben links.",
|
||||
"led.screenshot":"Nimmt einen Screenshot von dem LED-Bildschirm und gibt ein Bild.",
|
||||
"led.setBrightness":"Legen Sie die Helligkeit des Bildschirms von 0 (aus) auf 255 (volle hell).",
|
||||
"led.setDisplayMode":"Stellt den Anzeigemodus zwischen schwarz und weiß und Graustufen für das Rendern von LEDs.",
|
||||
"led.stopAnimation":"Bricht die aktuelle Animation und löscht andere ausstehende Animationen.",
|
||||
"led.toggle":"Schaltet ein bestimmtes Pixels",
|
||||
"led.toggleAll":"Kehrt die aktuelle LED-Anzeige",
|
||||
"led.unplot":"Schalten Sie den angegebenen LED mit x \/ y-Koordinaten (X ist horizontal, y ist vertikal). (0,0) ist oben links.",
|
||||
"music":"Generation der Musiktöne durch Pin '' P0''.",
|
||||
"music.beat":"Gibt die Dauer von einem Beat in Millisekunden",
|
||||
"music.changeTempoBy":"Das Tempo zu ändern, um den angegebenen Betrag",
|
||||
"music.noteFrequency":"Ruft die Frequenz einer Note.",
|
||||
"music.playTone":"Spielt einen Ton durch Pin '' P0'' für die angegebene Dauer.",
|
||||
"music.rest":"Ruht (spielt nichts) für eine bestimmte Zeit durch Pin '' P0''.",
|
||||
"music.ringTone":"Spielt einen Ton durch Pin '' P0''.",
|
||||
"music.setTempo":"Legt das Tempo auf den angegebenen Betrag",
|
||||
"music.tempo":"Gibt das Tempo in Schlägen pro Minute. Das Tempo ist die Geschwindigkeit (Bpm = Beats pro Minute) welche Noten spielen. Je größer der Tempowert werden desto schnelleren die Noten spielen.",
|
||||
"pins":"Steuerströmen Pins für analoge\/digitale Signale, Servos, i2c...",
|
||||
"pins.analogPitch":"Eine Puls-Weiten-Modulation (PWM) Signal an der aktuellen Tonhöhe Pin ausgibt. Verwenden Sie 'Analog legen Tonhöhe Pin' die Tonhöhe Pin definieren.",
|
||||
"pins.analogReadPin":"Lesen Sie den Connector-Wert als Analog, d. h. als Wert zwischen 0 und 1023.",
|
||||
"pins.analogSetPeriod":"Konfiguriert die Pulsweitenmodulation (PWM) über den analogen Ausgang auf den angegebenen Wert in ** Mikrosekunden ** oder \"1\/1000' Millisekunden.\nWenn dieser Pin nicht als ein analoger Ausgang (mit 'analog schreiben Pin') konfiguriert ist, ist die Operation wirkungslos.",
|
||||
"pins.analogSetPitchPin":"Legt die Pin mit 'Stifte-> analoge Tonhöhe' verwendet.",
|
||||
"pins.analogWritePin":"Legen Sie den Connector-Wert als analoge. Wert muss zwischen 0 und 1023 bestehen.",
|
||||
"pins.digitalReadPin":"Lesen Sie die angegebene Pin oder Connector als 0 oder 1",
|
||||
"pins.digitalWritePin":"Legen Sie einen Pin oder Connector Wert auf 0 oder 1.",
|
||||
"pins.i2cReadNumber":"Lesen Sie eine Zahl von 7-Bit-I2C-Adresse.",
|
||||
"pins.i2cWriteNumber":"Schreiben Sie eine Zahl in eine 7-Bit-I2C-Adresse.",
|
||||
"pins.map":"Re-Karten eine Zahl aus einem Bereich in einen anderen. D. h. ein Wert '' von Low '' würden '' zu niedrig '', '' von hoher '' der Wert bis cm zu hoch '' Werte dazwischen zu Werte dazwischen, etc. zugeordnet bekommen.",
|
||||
"pins.onPulsed":"Dieser Pin mit einem digitalen Eingang konfiguriert, und generiert Ereignisse wo der Zeitstempel die Dauer ist, die dieser Pin entweder '' hoch '' oder '' niedrig '' war.",
|
||||
"pins.pulseDuration":"Ruft die Dauer des letzten Impulses in Mikrosekunden. Diese Funktion sollte von einem '' OnPulsed''-Handler aufgerufen werden.",
|
||||
"pins.servoSetPulse":"Konfiguriert dieser IO-Pin als Ausgang Analog\/Pwm, konfiguriert den Zeitraum um 20 ms zu sein und legt die Pulslänge, basierend auf dem Wert ist es gegeben ** Mikrosekunden ** oder \"1\/1000' Millisekunden.",
|
||||
"pins.servoWritePin":"Schreibt einen Wert in das Servo Steuerung der Welle entsprechend. Auf einem standard-Servo wird dies den Winkel der Welle (in Grad), Umzug der Welle in dieser Ausrichtung festgelegt. Auf eine kontinuierliche Rotation-Servo wird dies die Geschwindigkeit der Servo (mit '' 0'' wird Höchstgeschwindigkeit in der einen Richtung cm 180 cm voll zu beschleunigen, in die andere und einen Wert in der Nähe von '' 90 cm wird keine Bewegung) festgelegt.",
|
||||
"pins.setPull":"Die Anziehungskraft dieser Pin konfiguriert.",
|
||||
"serial":"Lesen und Schreiben von Daten über eine serielle Verbindung.",
|
||||
"serial.readLine":"Liest eine Textzeile aus der seriellen Schnittstelle.",
|
||||
"serial.redirect":"Dynamisch konfigurieren die serielle Instanz um Pins als USBTX und USBRX verwenden.",
|
||||
"serial.writeLine":"Druckt eine Textzeile an die serielle",
|
||||
"serial.writeNumber":"Druckt einen numerischen Wert an die serielle",
|
||||
"serial.writeString":"Sendet ein Stück Text über serielle Verbindung.",
|
||||
"serial.writeValue":"Schreibt ein '' Name: Wert '' Zeile an die serielle Paar."
|
||||
"Math.randomBoolean|block": "Wähle zufälligen Wahr- oder Falsch-Wert",
|
||||
"Math|block": "Mathematik",
|
||||
"String.fromCharCode|block": "Text aus char code %code",
|
||||
"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.showString|block": "Zeige|Zeichenfolge %text",
|
||||
"basic|block": "Grundlagen",
|
||||
"control.inBackground|block": "im Hintergrund ausführen",
|
||||
"control.reset|block": "zurücksetzen",
|
||||
"control.waitMicros|block": "Warte (µs)%micros",
|
||||
"control|block": "Steuerung",
|
||||
"game.addScore|block": "Ändere Spielstand um|%points",
|
||||
"game.gameOver|block": "Spiel beendet",
|
||||
"game.score|block": "Spielstand",
|
||||
"game.startCountdown|block": "Countdown| starten (ms) %duration",
|
||||
"game|block": "Spiel",
|
||||
"images.createBigImage|block": "erstelle großes Bild",
|
||||
"images.createImage|block": "Erstelle Bild",
|
||||
"images|block": "Bilder",
|
||||
"input.acceleration|block": "Beschleunigung (mg) |%NAME",
|
||||
"input.buttonIsPressed|block": "Button|%NAME|ist gedrückt",
|
||||
"input.compassHeading|block": "Kompassausrichtung (°)",
|
||||
"input.lightLevel|block": "Lichtstärke",
|
||||
"input.magneticForce|block": "Magnetkraft (µT) |%NAME",
|
||||
"input.onButtonPressed|block": "Wenn Button|%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.rotation|block": "Rotation (°)|%NAME",
|
||||
"input.runningTime|block": "Laufzeit (ms)",
|
||||
"input.setAccelerometerRange|block": "Setze Bewegungsmesser|range %range",
|
||||
"input.temperature|block": "Temperatur (°C)",
|
||||
"input|block": "Eingabe",
|
||||
"led.brightness|block": "Helligkeit",
|
||||
"led.plotBarGraph|block": "zeichne Balkendiagramm des %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",
|
||||
"led.stopAnimation|block": "Halte Animation an",
|
||||
"led.toggle|block": "Schalte zwischen|x %x|y %y",
|
||||
"led.unplot|block": "Unplot|x %x|y %y",
|
||||
"led|block": "LED",
|
||||
"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.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.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|block": "Pins",
|
||||
"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",
|
||||
"serial.writeLine|block": "serial|write line %text",
|
||||
"serial.writeNumber|block": "serial|write number %value",
|
||||
"serial.writeString|block": "serial|write string %text",
|
||||
"serial.writeValue|block": "serial|write value %name|= %value",
|
||||
"serial|block": "seriell",
|
||||
"{id:category}Basic": "Grundlagen",
|
||||
"{id:category}Control": "Steuerung",
|
||||
"{id:category}Game": "Spiel",
|
||||
"{id:category}Images": "Bilder",
|
||||
"{id:category}Input": "Eingabe",
|
||||
"{id:category}Led": "LED",
|
||||
"{id:category}Math": "Mathematik",
|
||||
"{id:category}Music": "Musik",
|
||||
"{id:category}Pins": "Pins",
|
||||
"{id:category}Serial": "Serielle"
|
||||
}
|
@ -1,166 +1,175 @@
|
||||
{
|
||||
"Math.randomBoolean":"Génère une valeur « true » ou « false » au hasard, tout comme le retournement d’une pièce de monnaie.",
|
||||
"String.fromCharCode":"Faire une chaîne de la donnée code de caractères ASCII.",
|
||||
"basic":"Permet d’accéder aux fonctionnalités de base micro : bit.",
|
||||
"basic.clearScreen":"Désactiver toutes les LEDs",
|
||||
"basic.forever":"Répète le code pour toujours en arrière-plan. À chaque itération, permet aux autres codes d’exécuter.",
|
||||
"basic.pause":"Pause pendant la durée spécifiée en millisecondes",
|
||||
"basic.pause|param|ms":"Combien de temps pour faire une pause pour, par exemple : 100, 200, 500, 1000, 2000",
|
||||
"basic.plotLeds":"Dessine une image sur l’écran LED.",
|
||||
"basic.plotLeds|param|leds":"modèle de LED à allumer\/éteindre",
|
||||
"basic.showAnimation":"Montre une séquence d’écrans LED comme une animation.",
|
||||
"basic.showAnimation|param|interval":"temps en millisecondes entre chaque rafraîchissement",
|
||||
"basic.showAnimation|param|leds":"modèle de LED à allumer\/éteindre",
|
||||
"basic.showLeds":"Dessine une image sur l’écran LED.",
|
||||
"basic.showLeds|param|interval":"temps en millisecondes pour faire une pause après dessin",
|
||||
"basic.showLeds|param|leds":"le modèle de LED pour activer\/désactiver",
|
||||
"basic.showNumber":"Mettez en surbrillance un numéro sur l’écran. Si le numéro s’inscrit sur l’écran (c'est-à-dire un seul chiffre), ne défilent pas.",
|
||||
"basic.showNumber|param|interval":"Vitesse de défilement ; par exemple : -100, 200, 100, 150",
|
||||
"basic.showString":"Afficher du texte à l’écran, un caractère à la fois. Si la chaîne s’inscrit sur l’écran (c'est-à-dire une lettre), ne défile pas.",
|
||||
"basic.showString|param|interval":"quelle vitesse de déplacement des personnages ; par exemple : -100, 200, 100, 150",
|
||||
"basic.showString|param|text":"le texte à faire défiler sur l’écran, par exemple : « Bonjour ! »",
|
||||
"control":"Utilitaires d’exécution et événements.",
|
||||
"control.inBackground":"Horaires du code qui s’exécutent en arrière-plan.",
|
||||
"control.reset":"Réinitialise le BBC micro : bit.",
|
||||
"game":"Un moteur de jeu unique-LED sprite",
|
||||
"game.addScore":"Ajoute des points pour le score actuel",
|
||||
"game.addScore|param|points":"nombre de points à changer, par exemple : 1",
|
||||
"game.gameOver":"Affiche un jeu au dessus de l’animation.",
|
||||
"game.score":"Obtient le score actuel",
|
||||
"game.setScore":"Définit la valeur actuelle de la partition",
|
||||
"game.setScore|param|value":"TODO",
|
||||
"game.startCountdown":"Commence un compte à rebours jeu",
|
||||
"game.startCountdown|param|ms":"durée du compte à rebours en millisecondes, par exemple : 10000",
|
||||
"images":"Création, manipulation et affichage d’images LED.",
|
||||
"images.createBigImage":"Crée une image avec 2 images.",
|
||||
"images.createImage":"Crée une image qui s’adapte à l’écran LED.",
|
||||
"input":"Événements et des données provenant de capteurs",
|
||||
"input.acceleration":"Obtenir la valeur de l’accélération en milli-gravitys (lorsque le jury pose plat avec l’écran vers le haut, x = 0, y = 0 et z =-1024)",
|
||||
"input.acceleration|param|dimension":"TODO",
|
||||
"input.buttonIsPressed":"Obtenir l’état du bouton (pressé ou non) pour '' A'' et '' B''.",
|
||||
"input.calibrate":"Obsolète, boussole de calibrage est automatique.",
|
||||
"input.compassHeading":"Obtenir le cap compas boussole actuel en degrés.",
|
||||
"input.lightLevel":"Lit le niveau de lumière appliqué à l’écran LED dans une gamme de '' 0'' (noir) à 255 '''' lumineux.",
|
||||
"input.magneticForce":"Obtenir la valeur de la force magnétique dans '' micro-Teslas'' ('' µT''). Cette fonction n’est pas pris en charge dans le simulateur.",
|
||||
"input.magneticForce|param|dimension":"TODO",
|
||||
"input.onButtonPressed":"Faire quelque chose quand vous appuyez sur un bouton ('' A'', '' B'' ou les deux '' A + B'')",
|
||||
"input.onButtonPressed|param|body":"TODO",
|
||||
"input.onButtonPressed|param|button":"TODO",
|
||||
"input.onGesture":"Attache le code à exécuter lorsque l’écran vers le haut.",
|
||||
"input.onGesture|param|body":"TODO",
|
||||
"input.onLogoDown":"Attache le code à exécuter lorsque le logo est orienté vers le bas et le jury est vertical.",
|
||||
"input.onLogoDown|param|body":"TODO",
|
||||
"input.onLogoUp":"Attache le code à exécuter lorsque le logo est orienté vers le haut et le jury est vertical.",
|
||||
"input.onLogoUp|param|body":"TODO",
|
||||
"input.onPinPressed":"Faire quelque chose lorsque vous appuyez sur une broche ('' P0'', '' P1'' ou les deux '' P2'').",
|
||||
"input.onPinPressed|param|body":"TODO",
|
||||
"input.onPinPressed|param|name":"TODO",
|
||||
"input.onScreenDown":"Attache le code à exécuter lorsque l’écran vers le bas.",
|
||||
"input.onScreenDown|param|body":"TODO",
|
||||
"input.onScreenUp":"Attache le code à exécuter lorsque l’écran vers le haut.",
|
||||
"input.onScreenUp|param|body":"TODO",
|
||||
"input.onShake":"Attache le code à exécuter lorsque l’appareil est secoué.",
|
||||
"input.onShake|param|body":"TODO",
|
||||
"input.pinIsPressed":"Obtenir l’état de la broche (pressé ou non). Nécessite de tenir au sol pour fermer le circuit.",
|
||||
"input.pinIsPressed|param|name":"broche utilisée pour détecter le toucher",
|
||||
"input.rotation":"La hauteur de l’appareil, rotation sur axe le '' x '', en degrés.",
|
||||
"input.rotation|param|kind":"TODO",
|
||||
"input.runningTime":"Obtient le nombre de millisecondes écoulées depuis le pouvoir sur.",
|
||||
"input.setAccelerometerRange":"Définit la plage d’échantillon accéléromètre de gravités.",
|
||||
"input.setAccelerometerRange|param|range":"une valeur décrivent l’assurer une rigidité maximale d’accélération mesurée",
|
||||
"input.temperature":"Obtient la température en Celsius degrés (° C).",
|
||||
"led":"Contrôle de l’écran LED.",
|
||||
"led.brightness":"Descendre la luminosité de l’écran de 0 () à 255 (pleine intensité).",
|
||||
"led.fadeIn":"Fondu dans l’affichage à l’écran.",
|
||||
"led.fadeIn|param|ms":"TODO",
|
||||
"led.fadeOut":"S’évanouit la luminosité de l’écran.",
|
||||
"led.fadeOut|param|ms":"TODO",
|
||||
"led.plot":"Allumer la LED spécifiée par x, y coordonnées (x est horizontal, y est verticale). (0,0) est en haut à gauche.",
|
||||
"led.plotAll":"Tous les voyants s’allume",
|
||||
"led.plotBarGraph":"Affiche un graphique à barres vertical basé sur la « valeur » et la valeur « élevée ».\nSi « élevé » est 0, le tableau s’ajuste automatiquement.",
|
||||
"led.plotBarGraph|param|high":"valeur maximale. Si 0, la valeur maximale ramenée automatiquement, par exemple : 0",
|
||||
"led.plotBarGraph|param|value":"valeur actuelle pour tracer",
|
||||
"led.plot|param|x":"TODO",
|
||||
"led.plot|param|y":"TODO",
|
||||
"led.point":"Obtenir l’État marche\/arrêt de la LED spécifiée par x, y coordonnées. (0,0) est en haut à gauche.",
|
||||
"led.point|param|x":"TODO",
|
||||
"led.point|param|y":"TODO",
|
||||
"led.screenshot":"Prend une capture d’écran de l’écran LED et renvoie une image.",
|
||||
"led.setBrightness":"Régler la luminosité de l’écran de 0 (off) à 255 (pleine intensité).",
|
||||
"led.setBrightness|param|value":"valeur de la luminosité, par exemple : 255, 127, 0",
|
||||
"led.setDisplayMode":"Définit le mode d’affichage entre noir et blanc et gris pour le rendu des LEDs.",
|
||||
"led.setDisplayMode|param|mode":"TODO",
|
||||
"led.stopAnimation":"Annule l’animation actuelle et efface les autres en attente d’animations.",
|
||||
"led.toggle":"Active\/désactive un pixel particulier",
|
||||
"led.toggleAll":"Inverse l’affichage actuel",
|
||||
"led.toggle|param|x":"TODO",
|
||||
"led.toggle|param|y":"TODO",
|
||||
"led.unplot":"Éteindre la LED spécifiée par x, y coordonnées (x est horizontal, y est verticale). (0,0) est en haut à gauche.",
|
||||
"led.unplot|param|x":"TODO",
|
||||
"led.unplot|param|y":"TODO",
|
||||
"music":"Génération de sonneries musicales via broche '' P0''.",
|
||||
"music.beat":"Retourne la durée d’un battement en milli-secondes",
|
||||
"music.changeTempoBy":"Changer le tempo de la quantité spécifiée",
|
||||
"music.changeTempoBy|param|bpm":"Le changement en battements par minute au tempo, par exemple : 20",
|
||||
"music.noteFrequency":"Obtient la fréquence d’une note.",
|
||||
"music.noteFrequency|param|name":"le nom de la note",
|
||||
"music.playTone":"Joue une tonalité via broche '' P0'' pour la durée donnée.",
|
||||
"music.playTone|param|frequency":"hauteur de la tonalité pour jouer en Hertz (Hz)",
|
||||
"music.playTone|param|ms":"durée de la tonalité en millisecondes (ms)",
|
||||
"music.rest":"Repose (joue rien) pendant une durée spécifiée via broche '' P0''.",
|
||||
"music.rest|param|ms":"reposer la durée en millisecondes (ms)",
|
||||
"music.ringTone":"Joue une tonalité via broche '' P0''.",
|
||||
"music.ringTone|param|frequency":"hauteur de la tonalité pour jouer en Hertz (Hz)",
|
||||
"music.setTempo":"Définit le tempo à la quantité spécifiée",
|
||||
"music.setTempo|param|bpm":"Le nouveau tempo en battements par minute, par exemple : 120",
|
||||
"music.tempo":"Retourne le tempo en battements par minute. Tempo est la vitesse (bpm = battements par minute) à qui jouent des notes. Plus la valeur du tempo, plus vite les notes jouera.",
|
||||
"pins":"Contrôle des courants à Pins pour signaux analogiques\/numériques, servos, i2c...",
|
||||
"pins.analogPitch":"Émet un signal de modulation (PWM) de largeur d’impulsion à l’axe de tangage actuelle. Utilisez « analog set axe de tangage » pour définir l’axe de tangage.",
|
||||
"pins.analogPitch|param|frequency":"TODO",
|
||||
"pins.analogPitch|param|ms":"TODO",
|
||||
"pins.analogReadPin":"Lire la valeur de connecteur analogique, c'est-à-dire comme une valeur comprise entre 0 et 1023.",
|
||||
"pins.analogReadPin|param|name":"broche d’écrire à",
|
||||
"pins.analogSetPeriod":"Configure la modulation de largeur d’impulsion (PWM) de la sortie à la valeur donnée en analogique ** microsecondes ** ou « 1\/1000' millisecondes.\nSi cette broche n’est pas configurée comme un analogue de sortie (en utilisant « écriture analogique pin »), l’opération n’a aucun effet.",
|
||||
"pins.analogSetPeriod|param|micros":"période en micro secondes. par exemple : 20000",
|
||||
"pins.analogSetPeriod|param|name":"broche analogique pour définir le délai",
|
||||
"pins.analogSetPitchPin":"Définit l’axe utilisé lors de l’utilisation de « pins-> pitch analogique ».",
|
||||
"pins.analogSetPitchPin|param|name":"TODO",
|
||||
"pins.analogWritePin":"Définissez la valeur de connecteur analogique. Valeur doit être comprise entre 0 et 1023.",
|
||||
"pins.analogWritePin|param|name":"nom de la broche d’écrire à",
|
||||
"pins.analogWritePin|param|value":"valeur à écrire sur la broche entre '' 0'' et '' 1023''. par exemple : 1023, 0",
|
||||
"pins.digitalReadPin":"Lire la broche spécifié ou le connecteur comme 0 ou 1",
|
||||
"pins.digitalReadPin|param|name":"broche pour lire à partir",
|
||||
"pins.digitalWritePin":"Définir une valeur de code pin ou le connecteur à 0 ou 1.",
|
||||
"pins.digitalWritePin|param|name":"broche d’écrire à",
|
||||
"pins.digitalWritePin|param|value":"valeur à définir sur la broche, 1 par exemple, 0",
|
||||
"pins.i2cReadNumber":"Lire un numéro de 7-bit I2C adresse.",
|
||||
"pins.i2cWriteNumber":"Écrire un nombre à une adresse I2C de 7 bits.",
|
||||
"pins.map":"Remappe un nombre d’une plage à l’autre. Autrement dit, une valeur '' de faible '' serait sont mappée aux '' à faible '', une valeur de '' de haut '' à '' à haute '', valeurs intermédiaires à etc in-between, de valeurs.",
|
||||
"pins.map|param|fromHigh":"limite la supérieure de la gamme actuelle de la valeur, par exemple : 1023",
|
||||
"pins.map|param|fromLow":"la limite inférieure de la gamme actuelle de la valeur",
|
||||
"pins.map|param|toHigh":"la limite supérieure de la cible de la valeur du rang, par exemple : 4",
|
||||
"pins.map|param|toLow":"la limite inférieure de la fourchette cible de la valeur",
|
||||
"pins.map|param|value":"valeur à la carte dans les rangs",
|
||||
"pins.onPulsed":"Configure cette broche pour une entrée numérique et génère des événements où l’horodatage est la durée pendant laquelle cette broche a été '' élevé '' ou '' faible ''.",
|
||||
"pins.pulseDuration":"Obtient la durée de la dernière impulsion en microsecondes. Cette fonction doit être appelée à partir d’un gestionnaire de '' onPulsed''.",
|
||||
"pins.servoSetPulse":"Configure cette broche e\/s comme une sortie analogique\/pwm, configure le laps de temps pour être 20 ms et définit la largeur d’impulsion, basée sur la valeur, il est donné ** microsecondes ** ou « 1\/1000' millisecondes.",
|
||||
"pins.servoSetPulse|param|micros":"durée de l’impulsion en micro secondes, par exemple : 1500",
|
||||
"pins.servoSetPulse|param|name":"nom de code PIN",
|
||||
"pins.servoWritePin":"Écrit une valeur à l’asservissement, contrôle de l’arbre en conséquence. Sur un servo standard, cette fonction définira l’angle de l’arbre (en degrés), déplacer l’arbre à cette orientation. Sur un servo de rotation continue, cette fonction définira la vitesse du servo (avec '' 0'' en pleine vitesse dans une seule direction, '' 180'' en pleine vitesse dans l’autre et une valeur de près de 90 '''' aucun mouvement).",
|
||||
"pins.servoWritePin|param|name":"broche d’écrire à",
|
||||
"pins.servoWritePin|param|value":"angle ou rotation à vitesse, par exemple : 0, 90 et 180",
|
||||
"pins.setPull":"Configure l’attraction de cette broche.",
|
||||
"pins.setPull|param|name":"broche pour définir le mode de traction sur",
|
||||
"pins.setPull|param|pull":"une des configurations mbed pull : PullUp, menu déroulant, PullNone ",
|
||||
"serial":"Lire et écrire des données sur une connexion série.",
|
||||
"serial.readLine":"Lit une ligne de texte à partir du port série.",
|
||||
"serial.redirect":"Configuration dynamique de l’instance de série pour utiliser des épingles autres que USBTX et USBRX.",
|
||||
"serial.redirect|param|rx":"le nouveau NIP de réception",
|
||||
"serial.redirect|param|tx":"les nouvelles goupilles de transmission",
|
||||
"serial.writeLine":"Imprime une ligne de texte pour le numéro de série",
|
||||
"serial.writeNumber":"Imprime une valeur numérique de la série",
|
||||
"serial.writeString":"Envoie un morceau de texte via la connexion série.",
|
||||
"serial.writeValue":"Écrit un « nom : valeur '' paire de ligne de la série.",
|
||||
"serial.writeValue|param|name":"nom de la valeur stream, par exemple : x",
|
||||
"serial.writeValue|param|value":"Écrire"
|
||||
"Math.randomBoolean": "Génère une valeur « true » ou « false » au hasard, comme si vous lanciez une pièce de monnaie.",
|
||||
"String.fromCharCode": "",
|
||||
"basic": "",
|
||||
"basic.clearScreen": "",
|
||||
"basic.forever": "",
|
||||
"basic.pause": "",
|
||||
"basic.pause|param|ms": "",
|
||||
"basic.plotLeds": "",
|
||||
"basic.plotLeds|param|leds": "",
|
||||
"basic.showAnimation": "",
|
||||
"basic.showAnimation|param|interval": "",
|
||||
"basic.showAnimation|param|leds": "",
|
||||
"basic.showLeds": "",
|
||||
"basic.showLeds|param|interval": "",
|
||||
"basic.showLeds|param|leds": "",
|
||||
"basic.showNumber": "",
|
||||
"basic.showNumber|param|interval": "",
|
||||
"basic.showString": "",
|
||||
"basic.showString|param|interval": "",
|
||||
"basic.showString|param|text": "",
|
||||
"control": "",
|
||||
"control.inBackground": "",
|
||||
"control.reset": "",
|
||||
"control.waitMicros": "",
|
||||
"control.waitMicros|param|micros": "",
|
||||
"game": "",
|
||||
"game.addScore": "",
|
||||
"game.addScore|param|points": "",
|
||||
"game.gameOver": "",
|
||||
"game.score": "",
|
||||
"game.setScore": "",
|
||||
"game.setScore|param|value": "",
|
||||
"game.startCountdown": "",
|
||||
"game.startCountdown|param|ms": "",
|
||||
"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.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": "",
|
||||
"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.digitalReadPin": "",
|
||||
"pins.digitalReadPin|param|name": "",
|
||||
"pins.digitalWritePin": "",
|
||||
"pins.digitalWritePin|param|name": "",
|
||||
"pins.digitalWritePin|param|value": "",
|
||||
"pins.i2cReadNumber": "",
|
||||
"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.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.spiWrite": "",
|
||||
"pins.spiWrite|param|value": "",
|
||||
"serial": "",
|
||||
"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": ""
|
||||
}
|
91
libs/core/_locales/fr/core-strings.json
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"Math.randomBoolean|block": "choisir au hasard vrai ou faux",
|
||||
"Math|block": "Maths",
|
||||
"String.fromCharCode|block": "texte du code de charactère %code",
|
||||
"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|block": "base",
|
||||
"control.inBackground|block": "exécuter en arrière-plan",
|
||||
"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.gameOver|block": "fin du jeu",
|
||||
"game.score|block": "score",
|
||||
"game.startCountdown|block": "commencer compte à rebours|(ms) %duration",
|
||||
"game|block": "jeu",
|
||||
"images.createBigImage|block": "créer grande image",
|
||||
"images.createImage|block": "créer image",
|
||||
"images|block": "images",
|
||||
"input.acceleration|block": "accélération (mg) |%NAME",
|
||||
"input.buttonIsPressed|block": "button|%NAME|est pressé",
|
||||
"input.compassHeading|block": "direction de la boussole (°)",
|
||||
"input.lightLevel|block": "niveau d’intensité lumineuse",
|
||||
"input.magneticForce|block": "force magnétique (µT) |%NAME",
|
||||
"input.onButtonPressed|block": "lorsque le button|%NAME|est pressé",
|
||||
"input.onGesture|block": "lorsque|%NAME",
|
||||
"input.onPinPressed|block": "lorsque le pin %NAME|est pressé",
|
||||
"input.onPinReleased|block": "lorsque la broche %NAME|est lachée",
|
||||
"input.pinIsPressed|block": "broche %NAME| est pressée",
|
||||
"input.rotation|block": "rotation (°)|%NAME",
|
||||
"input.runningTime|block": "temps d’exécution (ms)",
|
||||
"input.setAccelerometerRange|block": "spécifier|la gamme de l'acceleromètre %range",
|
||||
"input.temperature|block": "température (° C)",
|
||||
"input|block": "entrées",
|
||||
"led.brightness|block": "luminosité",
|
||||
"led.plotBarGraph|block": "tracer le graphe de %valeur|à %high",
|
||||
"led.plot|block": "allumer|x %x|y %y",
|
||||
"led.point|block": "allumée à|x %x|y %y",
|
||||
"led.setBrightness|block": "spécifier la luminosité %value",
|
||||
"led.stopAnimation|block": "arrêter l’animation",
|
||||
"led.toggle|block": "activer/désactiver|x %x|y %y",
|
||||
"led.unplot|block": "éteindre|x %x|y %y",
|
||||
"led|block": "LED",
|
||||
"music.beat|block": "%fraction|de mesure",
|
||||
"music.changeTempoBy|block": "changer le tempo par (bpm) | %value",
|
||||
"music.noteFrequency|block": "%note",
|
||||
"music.playTone|block": "jouer|ton %note=device_note|pendant %duration=device_beat",
|
||||
"music.rest|block": "repos (ms) |%duration=device_beat",
|
||||
"music.ringTone|block": "buzz (Hz)|%note=device_note",
|
||||
"music.setTempo|block": "régler le tempo à (bpm)|%valeur",
|
||||
"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": "",
|
||||
"pins.digitalWritePin|block": "",
|
||||
"pins.i2cReadNumber|block": "",
|
||||
"pins.i2cWriteNumber|block": "",
|
||||
"pins.map|block": "",
|
||||
"pins.onPulsed|block": "lorsque|la broche %pin|est pulsée %pulse",
|
||||
"pins.pulseDuration|block": "durée de l’impulsion (µs)",
|
||||
"pins.servoSetPulse|block": "",
|
||||
"pins.servoWritePin|block": "servo écrire|broche %name|à %value",
|
||||
"pins.setPull|block": "",
|
||||
"pins.spiWrite|block": "spi écrire %value",
|
||||
"pins|block": "broches",
|
||||
"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",
|
||||
"serial.writeLine|block": "série|écrire ligne %text",
|
||||
"serial.writeNumber|block": "série|écrire nombre %value",
|
||||
"serial.writeString|block": "série|écrire texte %text",
|
||||
"serial.writeValue|block": "série|écrire valeur %name|= %valeur",
|
||||
"serial|block": "Communication Série",
|
||||
"{id:category}Basic": "Basique",
|
||||
"{id:category}Control": "Contrôle",
|
||||
"{id:category}Game": "Jeu",
|
||||
"{id:category}Images": "Images",
|
||||
"{id:category}Input": "Entrées",
|
||||
"{id:category}Led": "LED",
|
||||
"{id:category}Math": "Maths",
|
||||
"{id:category}Music": "Musique",
|
||||
"{id:category}Pins": "Broches",
|
||||
"{id:category}Serial": "Communication Série"
|
||||
}
|
18
libs/core/enums.d.ts
vendored
@ -240,6 +240,24 @@ declare namespace control {
|
||||
}
|
||||
declare namespace led {
|
||||
}
|
||||
|
||||
|
||||
declare enum MotorCommand {
|
||||
//% block=coast
|
||||
Coast = 0,
|
||||
//% block=break
|
||||
Break = 1,
|
||||
//% block=sleep
|
||||
Sleep = 2,
|
||||
}
|
||||
|
||||
|
||||
declare enum Motor {
|
||||
A = 0,
|
||||
B = 1,
|
||||
//% block="A and B"
|
||||
AB = 2,
|
||||
}
|
||||
declare namespace motors {
|
||||
}
|
||||
|
||||
|
@ -1,17 +1,68 @@
|
||||
#include "ksbit.h"
|
||||
|
||||
enum MotorCommand {
|
||||
//% block=coast
|
||||
Coast,
|
||||
//% block=break
|
||||
Break,
|
||||
//% block=sleep
|
||||
Sleep
|
||||
};
|
||||
|
||||
enum Motor {
|
||||
A,
|
||||
B,
|
||||
//% block="A and B"
|
||||
AB
|
||||
};
|
||||
|
||||
/**
|
||||
* Blocks to control the onboard motors
|
||||
*/
|
||||
//% color=#008272 weight=30
|
||||
namespace motors {
|
||||
/**
|
||||
* Controls the power sent to a single motor
|
||||
* Turns on the motor at a certain percent of power.
|
||||
* @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
|
||||
void motorOn(int power) {
|
||||
//% blockId=motor_on block="motor on at %percent"
|
||||
//% parts=dcmotor weight=90 blockGap=8
|
||||
void motorPower(int power) {
|
||||
uBit.soundmotor.Motor_On(power);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send break, coast or sleep commands to the motor
|
||||
*/
|
||||
//% blockId=motor_command block="motor %command"
|
||||
//% parts=dcmotor weight=85
|
||||
void motorCommand(MotorCommand command) {
|
||||
switch(command) {
|
||||
case MotorCommand::Coast: uBit.soundmotor.Motor_Coast();break;
|
||||
case MotorCommand::Break: uBit.soundmotor.Motor_Break();break;
|
||||
case MotorCommand::Sleep: uBit.soundmotor.Motor_Sleep();break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls two motors attached to the board.
|
||||
*/
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent"
|
||||
//% weight=80
|
||||
void dualMotorPower(Motor motor, int duty_percent) {
|
||||
switch(motor) {
|
||||
case Motor::A: if (duty_percent <= 0) uBit.soundmotor.MotorA_Off();
|
||||
else uBit.soundmotor.MotorA_On(duty_percent); break;
|
||||
case Motor::B: if (duty_percent <= 0) uBit.soundmotor.MotorB_Off();
|
||||
else uBit.soundmotor.MotorB_On(duty_percent); break;
|
||||
case Motor::AB: if (duty_percent <= 0) {
|
||||
uBit.soundmotor.MotorA_Off();
|
||||
uBit.soundmotor.MotorB_Off();
|
||||
} else {
|
||||
uBit.soundmotor.MotorA_On(duty_percent);
|
||||
uBit.soundmotor.MotorB_On(duty_percent);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
@ -34,9 +34,8 @@
|
||||
"parts/speaker.svg",
|
||||
"parts/headphone.svg",
|
||||
"parts/dcmotor.svg",
|
||||
"_locales/ja/core-jsdoc-strings.json",
|
||||
"_locales/ja/core-strings.json",
|
||||
"_locales/fr/core-jsdoc-strings.json"
|
||||
"_locales/de/core-jsdoc-strings.json",
|
||||
"_locales/de/core-strings.json"
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {},
|
||||
|
22
libs/core/shims.d.ts
vendored
@ -517,12 +517,26 @@ declare namespace led {
|
||||
declare namespace motors {
|
||||
|
||||
/**
|
||||
* Controls the power sent to a single motor
|
||||
* Turns on the motor at a certain percent of power.
|
||||
* @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 shim=motors::motorOn
|
||||
function motorOn(power: number): void;
|
||||
//% blockId=motor_on block="motor on at %percent"
|
||||
//% parts=dcmotor weight=90 blockGap=8 shim=motors::motorPower
|
||||
function motorPower(power: number): void;
|
||||
|
||||
/**
|
||||
* Send break, coast or sleep commands to the motor
|
||||
*/
|
||||
//% blockId=motor_command block="motor %command"
|
||||
//% parts=dcmotor weight=85 shim=motors::motorCommand
|
||||
function motorCommand(command: MotorCommand): void;
|
||||
|
||||
/**
|
||||
* Controls two motors attached to the board.
|
||||
*/
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent"
|
||||
//% weight=80 shim=motors::dualMotorPower
|
||||
function dualMotorPower(motor: Motor, duty_percent: number): void;
|
||||
}
|
||||
declare namespace music {
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pxt-calliope",
|
||||
"version": "0.5.43",
|
||||
"version": "0.5.62",
|
||||
"description": "calliope target for PXT",
|
||||
"keywords": [
|
||||
"JavaScript",
|
||||
@ -30,7 +30,7 @@
|
||||
"typescript": "^1.8.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"pxt-core": "0.5.21",
|
||||
"pxt-core": "0.5.44",
|
||||
"less": "^2.6.0",
|
||||
"semantic-ui-less": "^2.2.4"
|
||||
}
|
||||
|
@ -220,13 +220,13 @@
|
||||
"appTheme": {
|
||||
"accentColor": "#249899",
|
||||
"defaultLocale": "de",
|
||||
"logoUrl": "https://calliope.cc/about",
|
||||
"logoUrl": "https://calliope.cc/",
|
||||
"logo": "./static/Calliopeminieditor.svg",
|
||||
"docsLogo": "./static/Calliopeminieditor.svg",
|
||||
"portraitLogo": "./static/Logo_Calliope_Woman.svg",
|
||||
"footerLogo": "./static/Calliopeminieditor.svg",
|
||||
"cardLogo": "https://az851932.vo.msecnd.net/pub/drbwxcth",
|
||||
"appLogo": "https://az851932.vo.msecnd.net/pub/tbhemtig",
|
||||
"cardLogo": "./static/icons/apple-touch-icon.png",
|
||||
"appLogo": "./static/icons/apple-touch-icon.png",
|
||||
"homeUrl": "https://calliope.cc/",
|
||||
"privacyUrl": "https://go.microsoft.com/fwlink/?LinkId=521839",
|
||||
"termsOfUseUrl": "https://go.microsoft.com/fwlink/?LinkID=206977",
|
||||
@ -259,33 +259,7 @@
|
||||
}
|
||||
],
|
||||
"boardName": "Calliope MINI",
|
||||
"docMenu": [
|
||||
{
|
||||
"name": "Getting Started",
|
||||
"path": "/getting-started"
|
||||
},
|
||||
{
|
||||
"name": "Projects",
|
||||
"path": "/projects"
|
||||
},
|
||||
{
|
||||
"name": "Reference",
|
||||
"path": "/reference"
|
||||
},
|
||||
{
|
||||
"name": "Blocks",
|
||||
"path": "/blocks"
|
||||
},
|
||||
{
|
||||
"name": "JavaScript",
|
||||
"path": "/javascript"
|
||||
},
|
||||
{
|
||||
"name": "Hardware",
|
||||
"path": "/device"
|
||||
}
|
||||
],
|
||||
"sideDoc": "getting-started",
|
||||
"hideSideDocs": true,
|
||||
"usbDocs": "/device/usb",
|
||||
"usbHelp": [
|
||||
{
|
||||
@ -351,9 +325,6 @@
|
||||
],
|
||||
"invertedMenu": true,
|
||||
"invertedToolbox": true,
|
||||
"blocklyOptions": {
|
||||
"media": "./static/blockly/media/",
|
||||
"trashcan": true
|
||||
}
|
||||
"blocklyOptions": { }
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
namespace pxsim.motors {
|
||||
export function motorOn(power: number) {
|
||||
export function motorPower(power: number) {
|
||||
// TODO
|
||||
}
|
||||
export function motorCommand(command: MotorCommand) {
|
||||
|
||||
}
|
||||
export function dualMotorPower(motor: Motor, percent: number) {
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
/*******************************
|
||||
Site Overrides
|
||||
*******************************/
|
||||
|
||||
@importGoogleFonts: false;
|
||||
|
@ -1,7 +1,17 @@
|
||||
/*******************************
|
||||
User Global Variables
|
||||
*******************************/
|
||||
@importGoogleFonts: false;
|
||||
|
||||
@importGoogleFonts: true;
|
||||
|
||||
@fontName : 'Roboto Mono';
|
||||
|
||||
@emSize : 14px;
|
||||
@fontSize : 13px;
|
||||
|
||||
/*-------------------
|
||||
Site Colors
|
||||
--------------------*/
|
||||
|
||||
@primaryColor: #3CB5B5;
|
||||
@secondaryColor: #43C9C9;
|
||||
@ -18,9 +28,11 @@
|
||||
@brown:#6B5B4C;
|
||||
@grey:#42495F;
|
||||
|
||||
@pageBackground : #FDFDFA;
|
||||
|
||||
|
||||
/*******************************
|
||||
PXT Overrides
|
||||
*******************************/
|
||||
|
||||
@backgroundColor: #FDFDFA;
|
||||
@blocklyToolboxColor: #F6F4E6;
|
||||
@blocklyToolboxColor: #F6F4E6;
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Import all components */
|
||||
@import 'semantic';
|
||||
@import 'pxt';
|
||||
@import 'themes/default/globals/site.variables';
|
||||
@import 'themes/pxt/globals/site.variables';
|
||||
@import 'site/globals/site.variables';
|
||||
@ -32,9 +33,11 @@
|
||||
&:extend(.yellow all);
|
||||
}
|
||||
|
||||
/* This removes the margin between the blockly categories to form connected pills */
|
||||
/*******************************
|
||||
Blockly
|
||||
*******************************/
|
||||
|
||||
.blocklyTreeRow {
|
||||
width: 230px;
|
||||
border-radius:5px;
|
||||
}
|
||||
|
||||
@ -45,7 +48,7 @@
|
||||
|
||||
/* Blockly Text */
|
||||
.blocklyTreeLabel {
|
||||
font-family: "Gotham SSm A","Gotham SSm B","Montserrat","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif !important;
|
||||
font-family: @pageFont !important;
|
||||
}
|
||||
|
||||
.blocklyTreeLabel {
|
||||
@ -53,7 +56,7 @@
|
||||
}
|
||||
|
||||
.blocklyFlyoutBackground {
|
||||
fill: #FDFDE2;
|
||||
fill: @grey;
|
||||
}
|
||||
|
||||
.blocklyToolboxDiv {
|
||||
@ -61,12 +64,32 @@
|
||||
padding:7px;
|
||||
}
|
||||
|
||||
|
||||
/* Mobile */
|
||||
@media only screen and (max-width: @largestMobileScreen) {
|
||||
.blocklyTreeLabel {
|
||||
font-size: 0.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet */
|
||||
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
|
||||
|
||||
}
|
||||
|
||||
/* Small Monitor */
|
||||
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
|
||||
.blocklyTreeRow {
|
||||
width: 230px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Large Monitor */
|
||||
@media only screen and (min-width: @largeMonitorBreakpoint) {
|
||||
.blocklyTreeRow {
|
||||
width: 230px;
|
||||
}
|
||||
}
|
||||
|
||||
/*******************************
|
||||
Menu Bar
|
||||
|
@ -91,7 +91,4 @@
|
||||
|
||||
@fontPath : 'fonts';
|
||||
|
||||
@headerFont : 'Segoe UI', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
||||
@pageFont : 'Segoe UI', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
||||
|
||||
/* End Config */
|
||||
|