Input

Events and data from sensors

input.onButtonEvent(Button.A, input.buttonEventClick(), function () {})
input.onGesture(Gesture.Shake, function () {})
input.onPinTouchEvent(TouchPin.P0, input.buttonEventDown(), 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

On Button Event, onGesture, On Pin Touch Event, buttonIsPressed, pinIsPressed, is gesture, compassHeading, temperature, acceleration, lightLevel, rotation, magneticForce, runningTime, setAccelerometerRange, calibrate-compass