pxt-calliope/docs/blocks/loops/repeat.md
2020-08-19 22:03:58 +02:00

17 lines
253 B
Markdown

# @extends
## #examples
## Example: Blinking heart
Flash the ``heart`` icon on the screen `4` times.
```blocks
for (let i = 0; i < 4; i++) {
basic.showIcon(IconNames.Heart)
basic.pause(300)
basic.clearScreen()
basic.pause(300)
}
```