2017-12-08 23:56:39 +01:00
|
|
|
# Turtle Scanner
|
|
|
|
|
2017-12-11 04:12:08 +01:00
|
|
|
The turtle scans the display over and over again.
|
2017-12-08 23:56:39 +01:00
|
|
|
|
|
|
|
```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
|
|
|
|
```
|