36 lines
1.6 KiB
JSON
36 lines
1.6 KiB
JSON
{
|
|
"Math.constrain|block": "constrain %value|between %low|and %high",
|
|
"Math.map|block": "map %value|from low %fromLow|from high %fromHigh|to low %toLow|to high %toHigh",
|
|
"Math.randomRange|block": "pick random %min|to %limit",
|
|
"Math|block": "Math",
|
|
"String.charAt|block": "char from %this=text|at %pos",
|
|
"String.compare|block": "compare %this=text| to %that",
|
|
"String.fromCharCode|block": "text from char code %code",
|
|
"String.length|block": "length of %VALUE",
|
|
"String.substr|block": "substring of %this=text|from %start|of length %length",
|
|
"String|block": "String",
|
|
"control.deviceSerialNumber|block": "device serial number",
|
|
"control.millis|block": "millis (ms)",
|
|
"control.onEvent|block": "on event|from %src|with value %value",
|
|
"control.panic|block": "panic %code",
|
|
"control.reset|block": "reset",
|
|
"control.runInBackground|block": "run in background",
|
|
"control.waitForEvent|block": "wait for event|from %src|with value %value",
|
|
"control.waitMicros|block": "wait (µs)%micros",
|
|
"control|block": "control",
|
|
"loops.forever|block": "forever",
|
|
"loops.pause|block": "pause (ms) %pause",
|
|
"loops|block": "loops",
|
|
"serial.writeBuffer|block": "serial|write buffer %buffer",
|
|
"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": "serial",
|
|
"{id:category}Control": "Control",
|
|
"{id:category}Loops": "Loops",
|
|
"{id:category}Math": "Math",
|
|
"{id:category}Serial": "Serial",
|
|
"{id:category}String": "String",
|
|
"{id:category}Text": "Text"
|
|
} |