pxt-ev3/docs/maker/puppet.md

18 lines
422 B
Markdown
Raw Normal View History

2017-10-27 09:13:51 +02:00
# Puppet
Use this program with the Programmable Brick and Large Motor.
```blocks
loops.forever(function () {
2017-10-27 10:47:25 +02:00
output.largeMotorA.setPower(30)
output.largeMotorA.on(true)
loops.pause(100)
output.largeMotorA.on(false)
2017-10-27 09:13:51 +02:00
music.playSoundUntilDone(music.sounds(Sounds.PowerUp))
2017-10-27 10:47:25 +02:00
output.largeMotorA.setPower(-30)
output.largeMotorA.on(true)
loops.pause(100)
output.largeMotorA.on(false)
2017-10-27 09:13:51 +02:00
})
```