pxt-common-packages
Version:
Microsoft MakeCode (PXT) common packages
35 lines • 2.79 kB
JSON
{
"ControllerGesture.EightG": "Raised when a 8G shock is detected",
"ControllerGesture.ScreenDown": "Raised when the screen is pointing up and the board is horizontal",
"ControllerGesture.ScreenUp": "Raised when the screen faces up",
"ControllerGesture.Shake": "Shake gesture",
"ControllerGesture.SixG": "Raised when a 6G shock is detected",
"ControllerGesture.ThreeG": "Raised when a 3G shock is detected",
"ControllerGesture.TiltDown": "Raised when the device tilts down",
"ControllerGesture.TiltLeft": "Raised when the screen is pointing left",
"ControllerGesture.TiltRight": "Raised when the screen is pointing right",
"ControllerGesture.TiltUp": "Raised when the device tilts up",
"ControllerGesture.TwoG": "Raised when a 2G shock is detected",
"controller": "Access to game controls",
"controller.acceleration": "Get the acceleration value in milli-gravitys (when the board is laying flat with the screen up,\nx=0, y=0 and z=-1023)",
"controller.acceleration|param|dimension": "the axis along which the acceleration if measured",
"controller.configureRepeatEventDefaults": "Configures the timing of the on button repeat event for all of the controller buttons",
"controller.configureRepeatEventDefaults|param|delay": "number of milliseconds from when the button is pressed to when the repeat event starts firing, eg: 500",
"controller.configureRepeatEventDefaults|param|interval": "minimum number of milliseconds between calls to the button repeat event, eg: 30",
"controller.crankPosition": "Gets the current position of the crank.",
"controller.lightLevel": "Read the light level applied to the LED screen in a range from 0 (dark) to 255 (bright).",
"controller.onCustomGesture": "Register a custom gesture for the controller",
"controller.onCustomGesture|param|id": "@param update",
"controller.onGesture": "Do something when a gesture happens (like shaking the board).",
"controller.onGesture|param|gesture": "the type of gesture to track",
"controller.onLightConditionChanged": "Register an event that runs when light conditions (darker or brighter) change.",
"controller.onLightConditionChanged|param|condition": "the condition that event triggers on",
"controller.setCrankPins": "Configures the pins used by the crank",
"controller.setCrankPins|param|pinA": "@param pinB ",
"controller.startLightAnimation": "Shows an animation on the controller lights",
"controller.startLightAnimation|param|animation": "@param duration ",
"controller.startLightPulse": "Shows a color pulse",
"controller.startLightPulse|param|rgb": "RGB color of the LED",
"controller.temperature": "Get the temperature in Celsius or Fahrenheit degrees.",
"controller.vibrate": "Vibrates the controller for the given duration (in milli seconds)"
}