2016-05-05 20:16:14 +02:00
|
|
|
{
|
2016-06-19 14:14:46 +02:00
|
|
|
"Math.randomBoolean|block": "pick random true or false",
|
|
|
|
"Math|block": "Math",
|
2016-11-03 17:43:20 +01:00
|
|
|
"String.charAt|block": "char from %this|at %pos",
|
|
|
|
"String.compare|block": "compare %this| to %that",
|
|
|
|
"String.concat|block": "join %this|%other",
|
2016-06-19 14:14:46 +02:00
|
|
|
"String.fromCharCode|block": "text from char code %code",
|
2016-11-03 17:43:20 +01:00
|
|
|
"String.isEmpty|block": "%this| is empty",
|
|
|
|
"String.length|block": "length of %VALUE",
|
|
|
|
"String.substr|block": "substring of %this|from %start|of length %length",
|
2016-06-19 14:14:46 +02:00
|
|
|
"String|block": "String",
|
|
|
|
"basic.clearScreen|block": "clear screen",
|
|
|
|
"basic.forever|block": "forever",
|
|
|
|
"basic.pause|block": "pause (ms) %pause",
|
|
|
|
"basic.showLeds|block": "show leds",
|
|
|
|
"basic.showNumber|block": "show|number %number",
|
|
|
|
"basic.showString|block": "show|string %text",
|
|
|
|
"basic|block": "basic",
|
2016-11-03 17:43:20 +01:00
|
|
|
"control.deviceName|block": "device name",
|
|
|
|
"control.deviceSerialNumber|block": "device serial number",
|
|
|
|
"control.eventSourceId|block": "%id",
|
|
|
|
"control.eventTimestamp|block": "event timestamp",
|
|
|
|
"control.eventValueId|block": "%id",
|
|
|
|
"control.eventValue|block": "event value",
|
2016-06-19 14:14:46 +02:00
|
|
|
"control.inBackground|block": "run in background",
|
2016-11-03 17:43:20 +01:00
|
|
|
"control.onEvent|block": "on event|from %src=control_event_source_id|with value %value=control_event_value_id",
|
|
|
|
"control.raiseEvent|block": "raise event|from source %src=control_event_source_id|with value %value=control_event_value_id",
|
2016-06-19 14:14:46 +02:00
|
|
|
"control.reset|block": "reset",
|
2016-09-09 08:11:58 +02:00
|
|
|
"control.waitMicros|block": "wait (µs)%micros",
|
2016-06-19 14:14:46 +02:00
|
|
|
"control|block": "control",
|
|
|
|
"game.addScore|block": "change score by|%points",
|
2016-11-03 17:43:20 +01:00
|
|
|
"game.createSprite|block": "create sprite at|x: %x|y: %y",
|
2016-06-19 14:14:46 +02:00
|
|
|
"game.gameOver|block": "game over",
|
|
|
|
"game.score|block": "score",
|
|
|
|
"game.startCountdown|block": "start countdown|(ms) %duration",
|
|
|
|
"game|block": "game",
|
|
|
|
"images.createBigImage|block": "create big image",
|
|
|
|
"images.createImage|block": "create image",
|
|
|
|
"images|block": "images",
|
|
|
|
"input.acceleration|block": "acceleration (mg)|%NAME",
|
|
|
|
"input.buttonIsPressed|block": "button|%NAME|is pressed",
|
|
|
|
"input.compassHeading|block": "compass heading (°)",
|
|
|
|
"input.lightLevel|block": "light level",
|
|
|
|
"input.magneticForce|block": "magnetic force (µT)|%NAME",
|
|
|
|
"input.onButtonPressed|block": "on button|%NAME|pressed",
|
|
|
|
"input.onGesture|block": "on |%NAME",
|
2016-09-09 08:11:58 +02:00
|
|
|
"input.onPinPressed|block": "on pin %NAME|pressed",
|
|
|
|
"input.onPinReleased|block": "on pin %NAME|released",
|
2016-07-27 17:42:58 +02:00
|
|
|
"input.pinIsPressed|block": "pin %NAME|is pressed",
|
2016-06-19 14:14:46 +02:00
|
|
|
"input.rotation|block": "rotation (°)|%NAME",
|
|
|
|
"input.runningTime|block": "running time (ms)",
|
|
|
|
"input.setAccelerometerRange|block": "set accelerometer|range %range",
|
|
|
|
"input.temperature|block": "temperature (°C)",
|
|
|
|
"input|block": "input",
|
|
|
|
"led.brightness|block": "brightness",
|
|
|
|
"led.plotBarGraph|block": "plot bar graph of %value |up to %high",
|
|
|
|
"led.plot|block": "plot|x %x|y %y",
|
|
|
|
"led.point|block": "point|x %x|y %y",
|
|
|
|
"led.setBrightness|block": "set brightness %value",
|
|
|
|
"led.stopAnimation|block": "stop animation",
|
2016-09-09 08:11:58 +02:00
|
|
|
"led.toggle|block": "toggle|x %x|y %y",
|
2016-06-19 14:14:46 +02:00
|
|
|
"led.unplot|block": "unplot|x %x|y %y",
|
|
|
|
"led|block": "led",
|
|
|
|
"music.beat|block": "%fraction|beat",
|
|
|
|
"music.changeTempoBy|block": "change tempo by (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": "ring tone (Hz)|%note=device_note",
|
|
|
|
"music.setTempo|block": "set tempo to (bpm)|%value",
|
|
|
|
"music.tempo|block": "tempo (bpm)",
|
|
|
|
"music|block": "music",
|
|
|
|
"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": "pulse duration (µs)",
|
2016-11-03 17:43:20 +01:00
|
|
|
"pins.pulseIn|block": "pulse in (µs)|pin %name|pulsed %value",
|
2016-06-19 14:14:46 +02:00
|
|
|
"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",
|
2016-09-09 08:11:58 +02:00
|
|
|
"pins.spiWrite|block": "spi write %value",
|
2016-06-19 14:14:46 +02:00
|
|
|
"pins|block": "pins",
|
2016-11-03 17:43:20 +01:00
|
|
|
"serial.delimiters|block": "%del",
|
2016-10-19 19:45:39 +02:00
|
|
|
"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",
|
2016-06-19 14:14:46 +02:00
|
|
|
"serial.writeLine|block": "serial|write line %text",
|
|
|
|
"serial.writeNumber|block": "serial|write number %value",
|
2016-10-19 19:45:39 +02:00
|
|
|
"serial.writeString|block": "serial|write string %text",
|
2016-06-19 14:14:46 +02:00
|
|
|
"serial.writeValue|block": "serial|write value %name|= %value",
|
2016-10-19 19:45:39 +02:00
|
|
|
"serial|block": "serial",
|
|
|
|
"{id:category}Basic": "Basic",
|
|
|
|
"{id:category}Control": "Control",
|
|
|
|
"{id:category}Game": "Game",
|
|
|
|
"{id:category}Images": "Images",
|
|
|
|
"{id:category}Input": "Input",
|
|
|
|
"{id:category}Led": "Led",
|
|
|
|
"{id:category}Math": "Math",
|
|
|
|
"{id:category}Music": "Music",
|
|
|
|
"{id:category}Pins": "Pins",
|
2016-11-03 17:43:20 +01:00
|
|
|
"{id:category}Serial": "Serial",
|
|
|
|
"{id:category}String": "String",
|
|
|
|
"{id:category}Text": "Text"
|
2016-05-05 20:16:14 +02:00
|
|
|
}
|