pxt-ev3/docs/maker/sound-machine.md

12 lines
287 B
Markdown
Raw Normal View History

2017-10-26 22:19:16 -07:00
# Sound Machine
This example program combined with the small model will make a beat and rhythm on any surface when the program is run.
```blocks
loops.forever(function () {
2018-01-18 16:43:16 -08:00
motors.largeA.setSpeed(50)
2017-10-26 22:19:16 -07:00
loops.pause(200)
2018-01-18 16:43:16 -08:00
motors.largeA.setSpeed(100)
2017-10-26 22:19:16 -07:00
loops.pause(200)
})
```