Reference

loops.forever(function () {})
lights.set(DigitalPin.D0, 1)
sensing.pressed(DigitalPin.D0)
rgb.setColor(0)

Advanced

pins.digitalRead(DigitalPin.D0)

See Also

blocks JavaScript, lights, sensing, control, rgb, pins, control