Input
Events and data from sensors
input.onButtonPressed(Button.A, function () {})
input.onGesture(Gesture.Shake, function () {})
input.onPinPressed(TouchPin.P0, function() {})
input.onPinReleased(TouchPin.P0, function() {})
input.buttonIsPressed(Button.A)
input.pinIsPressed(TouchPin.P0)
input.isGesture(Gesture.Shake)
input.compassHeading()
input.temperature()
input.acceleration(Dimension.X)
input.lightLevel()
input.rotation(Rotation.Pitch)
input.magneticForce(Dimension.X)
input.runningTime()
input.runningTimeMicros()
input.setAccelerometerRange(AcceleratorRange.OneG)
See also
onButtonPressed, onGesture, onPinPressed, onPinReleased, buttonIsPressed, pinIsPressed, is gesture, compassHeading, temperature, acceleration, lightLevel, rotation, magneticForce, runningTime, setAccelerometerRange, calibrate-compass