pxt-ev3/docs/maker/puppet.md
2017-10-27 01:47:25 -07:00

422 B

Puppet

Use this program with the Programmable Brick and Large Motor.

loops.forever(function () {
    output.largeMotorA.setPower(30)
    output.largeMotorA.on(true)
    loops.pause(100)
    output.largeMotorA.on(false)
    music.playSoundUntilDone(music.sounds(Sounds.PowerUp))
    output.largeMotorA.setPower(-30)
    output.largeMotorA.on(true)
    loops.pause(100)
    output.largeMotorA.on(false)
})