pxt-ev3/docs/maker/security-gadget.md
2018-01-18 16:43:16 -08:00

248 B

Security Gadget

This program will activate an alarm when an object is lifted from the Touch Sensor.

sensors.touch1.onEvent(TouchSensorEvent.Released, function () {
    music.playSoundEffectUntilDone(sounds.informationActivate);
})