brick namespace
This commit is contained in:
@ -10,6 +10,18 @@
|
||||
"MMap.slice": "Read a range of bytes into a buffer.",
|
||||
"MMap.write": "Perform write(2) on the underlaying file",
|
||||
"TouchSensorEvent": "Touch sensor interactions",
|
||||
"brick.Button": "Generic button class, for device buttons and sensors.",
|
||||
"brick.Button.isPressed": "Check if button is currently pressed or not.",
|
||||
"brick.Button.onEvent": "Do something when a button or sensor is clicked, up or down.",
|
||||
"brick.Button.onEvent|param|body": "code to run when the event is raised",
|
||||
"brick.Button.wasPressed": "See if the button was pressed again since the last time you checked.",
|
||||
"brick.buttonDown": "Down button on the EV3 Brick.",
|
||||
"brick.buttonEnter": "Enter button on the EV3 Brick.",
|
||||
"brick.buttonLeft": "Left button on the EV3 Brick.",
|
||||
"brick.buttonRight": "Right button on the EV3 Brick.",
|
||||
"brick.buttonUp": "Up button on the EV3 Brick.",
|
||||
"brick.pattern": "Pattern block.",
|
||||
"brick.pattern|param|pattern": "the lights pattern to use. eg: LightsPattern.Green",
|
||||
"brick.print": "Show text on the screen.",
|
||||
"brick.print|param|text": "the text to print on the screen, eg: \"Hello world\"",
|
||||
"brick.print|param|x": "the starting position's x coordinate, eg: 0",
|
||||
@ -18,6 +30,8 @@
|
||||
"brick.setPixel|param|on": "a value indicating if the pixel should be on or off",
|
||||
"brick.setPixel|param|x": "the starting position's x coordinate, eg: 0",
|
||||
"brick.setPixel|param|y": "the starting position's x coordinate, eg: 0",
|
||||
"brick.setStatusLight": "Set lights.",
|
||||
"brick.setStatusLight|param|pattern": "the lights pattern to use.",
|
||||
"control": "Program controls and events.",
|
||||
"control.allocateNotifyEvent": "Allocates the next user notification event",
|
||||
"control.deviceFirmwareVersion": "Determine the version of system software currently running.",
|
||||
@ -26,44 +40,6 @@
|
||||
"control.raiseEvent": "Announce that an event happened to registered handlers.",
|
||||
"control.raiseEvent|param|src": "ID of the Component that generated the event",
|
||||
"control.raiseEvent|param|value": "Component specific code indicating the cause of the event.",
|
||||
"input": "Respond to and read data from buttons and sensors.",
|
||||
"input.Button": "Generic button class, for device buttons and sensors.",
|
||||
"input.Button.isPressed": "Check if button is currently pressed or not.",
|
||||
"input.Button.onEvent": "Do something when a button or sensor is clicked, up or down.",
|
||||
"input.Button.onEvent|param|body": "code to run when the event is raised",
|
||||
"input.Button.wasPressed": "See if the button was pressed again since the last time you checked.",
|
||||
"input.ColorSensor.ambientLight": "Get current ambient light value from the color sensor.",
|
||||
"input.ColorSensor.color": "Get the current color from the color sensor.",
|
||||
"input.ColorSensor.onColorDetected": "Registers code to run when the given color is detected",
|
||||
"input.ColorSensor.onColorDetected|param|color": "the color to dtect",
|
||||
"input.ColorSensor.onColorDetected|param|handler": "the code to run when detected",
|
||||
"input.ColorSensor.reflectedLight": "Get current reflected light value from the color sensor.",
|
||||
"input.GyroSensor.angle": "Get the current angle from the gyroscope.",
|
||||
"input.GyroSensor.rate": "Get the current rotation rate from the gyroscope.",
|
||||
"input.InfraredSensor.onObjectNear": "Registers code to run when an object is getting near.",
|
||||
"input.InfraredSensor.onObjectNear|param|handler": "the code to run when detected",
|
||||
"input.InfraredSensor.proximity": "Get the promixity measured by the infrared sensor, from ``0`` (close) to ``100`` (far)",
|
||||
"input.InfraredSensor.remoteCommand": "Get the remote commandreceived the infrared sensor.",
|
||||
"input.RemoteInfraredBeaconButton.isPressed": "Check if a remote button is currently pressed or not.",
|
||||
"input.RemoteInfraredBeaconButton.onEvent": "Do something when a button or sensor is clicked, up or down",
|
||||
"input.RemoteInfraredBeaconButton.onEvent|param|body": "code to run when the event is raised",
|
||||
"input.RemoteInfraredBeaconButton.wasPressed": "See if the remote button was pressed again since the last time you checked.",
|
||||
"input.TouchSensor.isTouched": "Check if touch sensor is touched.",
|
||||
"input.TouchSensor.onEvent": "Do something when a touch sensor is touched...",
|
||||
"input.TouchSensor.onEvent|param|body": "code to run when the event is raised",
|
||||
"input.UltraSonicSensor.distance": "Gets the distance from the sonar in millimeters",
|
||||
"input.UltraSonicSensor.onObjectNear": "Registers code to run when the given color is close",
|
||||
"input.UltraSonicSensor.onObjectNear|param|handler": "the code to run when detected",
|
||||
"input.buttonDown": "Down button on the EV3 Brick.",
|
||||
"input.buttonEnter": "Enter button on the EV3 Brick.",
|
||||
"input.buttonLeft": "Left button on the EV3 Brick.",
|
||||
"input.buttonRight": "Right button on the EV3 Brick.",
|
||||
"input.buttonUp": "Up button on the EV3 Brick.",
|
||||
"input.remoteButtonBottomLeft": "Remote bottom-left button.",
|
||||
"input.remoteButtonBottomRight": "Remote bottom-right button.",
|
||||
"input.remoteButtonCenter": "Remote beacon (center) button.",
|
||||
"input.remoteButtonTopLeft": "Remote top-left button.",
|
||||
"input.remoteButtonTopRight": "Remote top-right button.",
|
||||
"motors.Motor.clearCount": "Clears the motor count",
|
||||
"motors.Motor.count": "Gets motor step count.",
|
||||
"motors.Motor.on": "Power on or off the motor.",
|
||||
@ -75,16 +51,39 @@
|
||||
"motors.Motor.setReversed": "Reverses the motor polarity",
|
||||
"motors.Motor.speed": "Gets motor actual speed.",
|
||||
"motors.Motor.tachoCount": "Gets motor tacho count.",
|
||||
"motors.pattern": "Pattern block.",
|
||||
"motors.pattern|param|pattern": "the lights pattern to use. eg: LightsPattern.Green",
|
||||
"motors.setStatusLight": "Set lights.",
|
||||
"motors.setStatusLight|param|pattern": "the lights pattern to use.",
|
||||
"motors.stopAllMotors": "Stops all motors",
|
||||
"output.createBuffer": "Create a new zero-initialized buffer.",
|
||||
"output.createBuffer|param|size": "number of bytes in the buffer",
|
||||
"screen.clear": "Clear screen and reset font to normal.",
|
||||
"screen.doubleIcon": "Double size of an icon.",
|
||||
"screen.drawIcon": "Draw an icon on the screen.",
|
||||
"sensors.ColorSensor.ambientLight": "Get current ambient light value from the color sensor.",
|
||||
"sensors.ColorSensor.color": "Get the current color from the color sensor.",
|
||||
"sensors.ColorSensor.onColorDetected": "Registers code to run when the given color is detected",
|
||||
"sensors.ColorSensor.onColorDetected|param|color": "the color to dtect",
|
||||
"sensors.ColorSensor.onColorDetected|param|handler": "the code to run when detected",
|
||||
"sensors.ColorSensor.reflectedLight": "Get current reflected light value from the color sensor.",
|
||||
"sensors.GyroSensor.angle": "Get the current angle from the gyroscope.",
|
||||
"sensors.GyroSensor.rate": "Get the current rotation rate from the gyroscope.",
|
||||
"sensors.InfraredSensor.onObjectNear": "Registers code to run when an object is getting near.",
|
||||
"sensors.InfraredSensor.onObjectNear|param|handler": "the code to run when detected",
|
||||
"sensors.InfraredSensor.proximity": "Get the promixity measured by the infrared sensor, from ``0`` (close) to ``100`` (far)",
|
||||
"sensors.InfraredSensor.remoteCommand": "Get the remote commandreceived the infrared sensor.",
|
||||
"sensors.RemoteInfraredBeaconButton.isPressed": "Check if a remote button is currently pressed or not.",
|
||||
"sensors.RemoteInfraredBeaconButton.onEvent": "Do something when a button or sensor is clicked, up or down",
|
||||
"sensors.RemoteInfraredBeaconButton.onEvent|param|body": "code to run when the event is raised",
|
||||
"sensors.RemoteInfraredBeaconButton.wasPressed": "See if the remote button was pressed again since the last time you checked.",
|
||||
"sensors.TouchSensor.isTouched": "Check if touch sensor is touched.",
|
||||
"sensors.TouchSensor.onEvent": "Do something when a touch sensor is touched...",
|
||||
"sensors.TouchSensor.onEvent|param|body": "code to run when the event is raised",
|
||||
"sensors.UltraSonicSensor.distance": "Gets the distance from the sonar in millimeters",
|
||||
"sensors.UltraSonicSensor.onObjectNear": "Registers code to run when the given color is close",
|
||||
"sensors.UltraSonicSensor.onObjectNear|param|handler": "the code to run when detected",
|
||||
"sensors.remoteButtonBottomLeft": "Remote bottom-left button.",
|
||||
"sensors.remoteButtonBottomRight": "Remote bottom-right button.",
|
||||
"sensors.remoteButtonCenter": "Remote beacon (center) button.",
|
||||
"sensors.remoteButtonTopLeft": "Remote top-left button.",
|
||||
"sensors.remoteButtonTopRight": "Remote top-right button.",
|
||||
"serial": "Reading and writing data over a serial connection.",
|
||||
"serial.writeDmesg": "Send DMESG debug buffer over serial."
|
||||
}
|
@ -30,61 +30,21 @@
|
||||
"TouchSensorEvent.Bumped|block": "bumped",
|
||||
"TouchSensorEvent.Pressed|block": "pressed",
|
||||
"TouchSensorEvent.Released|block": "released",
|
||||
"brick.Button.isPressed|block": "%button|is pressed",
|
||||
"brick.Button.onEvent|block": "on %button|%event",
|
||||
"brick.Button.wasPressed|block": "%button|was pressed",
|
||||
"brick.buttonDown|block": "button down",
|
||||
"brick.buttonEnter|block": "button enter",
|
||||
"brick.buttonLeft|block": "button left",
|
||||
"brick.buttonRight|block": "button right",
|
||||
"brick.buttonUp|block": "button up",
|
||||
"brick.pattern|block": "%pattern",
|
||||
"brick.print|block": "print %text| at x: %x| y: %y",
|
||||
"brick.setPixel|block": "set pixel %on| at x: %x| y: %y",
|
||||
"brick.setStatusLight|block": "set status light %pattern=led_pattern",
|
||||
"brick|block": "brick",
|
||||
"control.raiseEvent|block": "raise event|from %src|with value %value",
|
||||
"control|block": "control",
|
||||
"input.Button.isPressed|block": "%button|is pressed",
|
||||
"input.Button.onEvent|block": "on %button|%event",
|
||||
"input.Button.wasPressed|block": "%button|was pressed",
|
||||
"input.ColorSensor.ambientLight|block": "%color| ambient light",
|
||||
"input.ColorSensor.color|block": "%color| color",
|
||||
"input.ColorSensor.onColorDetected|block": "on %sensor|detected %color",
|
||||
"input.ColorSensor.reflectedLight|block": "%color| reflected light",
|
||||
"input.GyroSensor.angle|block": "%sensor|angle",
|
||||
"input.GyroSensor.rate|block": "%sensor|rotation rate",
|
||||
"input.InfraredSensor.onObjectNear|block": "on %sensor|object near",
|
||||
"input.InfraredSensor.proximity|block": "%infrared|proximity",
|
||||
"input.InfraredSensor.remoteCommand|block": "%infrared|remote command",
|
||||
"input.RemoteInfraredBeaconButton.isPressed|block": "%button|is pressed",
|
||||
"input.RemoteInfraredBeaconButton.onEvent|block": "on %button|%event",
|
||||
"input.RemoteInfraredBeaconButton.wasPressed|block": "%button|was pressed",
|
||||
"input.TouchSensor.isTouched|block": "%sensor|is touched",
|
||||
"input.TouchSensor.onEvent|block": "on %sensor|%event",
|
||||
"input.UltraSonicSensor.distance|block": "%sensor|distance",
|
||||
"input.UltraSonicSensor.onObjectNear|block": "on %sensor|object near",
|
||||
"input.buttonDown|block": "brick button down",
|
||||
"input.buttonEnter|block": "brick button enter",
|
||||
"input.buttonLeft|block": "brick button left",
|
||||
"input.buttonRight|block": "brick button right",
|
||||
"input.buttonUp|block": "brick button up",
|
||||
"input.color1|block": "color sensor 1",
|
||||
"input.color2|block": "color sensor 2",
|
||||
"input.color3|block": "color sensor 3",
|
||||
"input.color4|block": "color sensor 4",
|
||||
"input.gyro1|block": "gyro sensor 1",
|
||||
"input.gyro2|block": "gyro sensor 2",
|
||||
"input.gyro3|block": "gyro sensor 3",
|
||||
"input.gyro4|block": "gyro sensor 4",
|
||||
"input.infraredSensor1|block": "infrared sensor 1",
|
||||
"input.infraredSensor2|block": "infrared sensor 2",
|
||||
"input.infraredSensor3|block": "infrared sensor 3",
|
||||
"input.infraredSensor4|block": "infrared sensor 4",
|
||||
"input.remoteButtonBottomLeft|block": "remote button bottom-left",
|
||||
"input.remoteButtonBottomRight|block": "remote button bottom-right",
|
||||
"input.remoteButtonCenter|block": "remote button center",
|
||||
"input.remoteButtonTopLeft|block": "remote button top-left",
|
||||
"input.remoteButtonTopRight|block": "remote button top-right",
|
||||
"input.touchSensor1|block": "touch sensor 1",
|
||||
"input.touchSensor2|block": "touch sensor 2",
|
||||
"input.touchSensor3|block": "touch sensor 3",
|
||||
"input.touchSensor4|block": "touch sensor 4",
|
||||
"input.ultrasonic1|block": "ultrasonic sensor 1",
|
||||
"input.ultrasonic2|block": "ultrasonic sensor 2",
|
||||
"input.ultrasonic3|block": "ultrasonic sensor 3",
|
||||
"input.ultrasonic4|block": "ultrasonic sensor 4",
|
||||
"input|block": "input",
|
||||
"motors.Motor.count|block": "%motor|count",
|
||||
"motors.Motor.on|block": "%motor|%onOrOff",
|
||||
"motors.Motor.setBrake|block": "%motor|set brake %brake",
|
||||
@ -100,25 +60,66 @@
|
||||
"motors.mediumMotorB|block": "medium motor B",
|
||||
"motors.mediumMotorC|block": "medium motor C",
|
||||
"motors.mediumMotorD|block": "medium motor D",
|
||||
"motors.pattern|block": "%pattern",
|
||||
"motors.setStatusLight|block": "set status light %pattern=led_pattern",
|
||||
"motors.stopAllMotors|block": "stop all motors",
|
||||
"motors|block": "motors",
|
||||
"output|block": "output",
|
||||
"screen|block": "screen",
|
||||
"sensors.ColorSensor.ambientLight|block": "%color| ambient light",
|
||||
"sensors.ColorSensor.color|block": "%color| color",
|
||||
"sensors.ColorSensor.onColorDetected|block": "on %sensor|detected %color",
|
||||
"sensors.ColorSensor.reflectedLight|block": "%color| reflected light",
|
||||
"sensors.GyroSensor.angle|block": "%sensor|angle",
|
||||
"sensors.GyroSensor.rate|block": "%sensor|rotation rate",
|
||||
"sensors.InfraredSensor.onObjectNear|block": "on %sensor|object near",
|
||||
"sensors.InfraredSensor.proximity|block": "%infrared|proximity",
|
||||
"sensors.InfraredSensor.remoteCommand|block": "%infrared|remote command",
|
||||
"sensors.RemoteInfraredBeaconButton.isPressed|block": "%button|is pressed",
|
||||
"sensors.RemoteInfraredBeaconButton.onEvent|block": "on %button|%event",
|
||||
"sensors.RemoteInfraredBeaconButton.wasPressed|block": "%button|was pressed",
|
||||
"sensors.TouchSensor.isTouched|block": "%sensor|is touched",
|
||||
"sensors.TouchSensor.onEvent|block": "on %sensor|%event",
|
||||
"sensors.UltraSonicSensor.distance|block": "%sensor|distance",
|
||||
"sensors.UltraSonicSensor.onObjectNear|block": "on %sensor|object near",
|
||||
"sensors.color1|block": "color sensor 1",
|
||||
"sensors.color2|block": "color sensor 2",
|
||||
"sensors.color3|block": "color sensor 3",
|
||||
"sensors.color4|block": "color sensor 4",
|
||||
"sensors.gyro1|block": "gyro sensor 1",
|
||||
"sensors.gyro2|block": "gyro sensor 2",
|
||||
"sensors.gyro3|block": "gyro sensor 3",
|
||||
"sensors.gyro4|block": "gyro sensor 4",
|
||||
"sensors.infraredSensor1|block": "infrared sensor 1",
|
||||
"sensors.infraredSensor2|block": "infrared sensor 2",
|
||||
"sensors.infraredSensor3|block": "infrared sensor 3",
|
||||
"sensors.infraredSensor4|block": "infrared sensor 4",
|
||||
"sensors.remoteButtonBottomLeft|block": "remote button bottom-left",
|
||||
"sensors.remoteButtonBottomRight|block": "remote button bottom-right",
|
||||
"sensors.remoteButtonCenter|block": "remote button center",
|
||||
"sensors.remoteButtonTopLeft|block": "remote button top-left",
|
||||
"sensors.remoteButtonTopRight|block": "remote button top-right",
|
||||
"sensors.touchSensor1|block": "touch sensor 1",
|
||||
"sensors.touchSensor2|block": "touch sensor 2",
|
||||
"sensors.touchSensor3|block": "touch sensor 3",
|
||||
"sensors.touchSensor4|block": "touch sensor 4",
|
||||
"sensors.ultrasonic1|block": "ultrasonic sensor 1",
|
||||
"sensors.ultrasonic2|block": "ultrasonic sensor 2",
|
||||
"sensors.ultrasonic3|block": "ultrasonic sensor 3",
|
||||
"sensors.ultrasonic4|block": "ultrasonic sensor 4",
|
||||
"sensors|block": "sensors",
|
||||
"serial|block": "serial",
|
||||
"{id:category}Brick": "Brick",
|
||||
"{id:category}Control": "Control",
|
||||
"{id:category}Input": "Input",
|
||||
"{id:category}MMap": "MMap",
|
||||
"{id:category}Motors": "Motors",
|
||||
"{id:category}Output": "Output",
|
||||
"{id:category}Screen": "Screen",
|
||||
"{id:category}Sensors": "Sensors",
|
||||
"{id:category}Serial": "Serial",
|
||||
"{id:group}Brick": "Brick",
|
||||
"{id:group}Color Sensor": "Color Sensor",
|
||||
"{id:group}Gyro Sensor": "Gyro Sensor",
|
||||
"{id:group}Infrared Sensor": "Infrared Sensor",
|
||||
"{id:group}Light": "Light",
|
||||
"{id:group}Motors": "Motors",
|
||||
"{id:group}Remote Infrared Beacon": "Remote Infrared Beacon",
|
||||
"{id:group}Touch Sensor": "Touch Sensor",
|
||||
|
Reference in New Issue
Block a user