pxt-calliope/docs/examples/turtle-scanner.md
2017-12-10 19:12:08 -08:00

24 lines
418 B
Markdown

# Turtle Scanner
The turtle scans the display over and over again.
```blocks
turtle.setPosition(0, 0)
turtle.turnRight()
turtle.setSpeed(20)
basic.forever(() => {
turtle.forward(4)
turtle.turnRight()
turtle.forward(1)
turtle.turnRight()
turtle.forward(4)
turtle.turnLeft()
turtle.forward(1)
turtle.turnLeft()
})
```
```package
microturtle=github:Microsoft/pxt-microturtle#master
```