2016-03-26 00:47:20 +01:00
|
|
|
# strobe light lesson
|
|
|
|
|
2016-04-02 01:22:47 +02:00
|
|
|
Learn how to create a blinking LED script.
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### @video td/videos/strobe-light-0
|
|
|
|
|
|
|
|
## Topic
|
|
|
|
|
|
|
|
For Loop
|
|
|
|
|
|
|
|
## Quick links
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
* [activity](/lessons/strobe-light/activity)
|
|
|
|
* [challenges](/lessons/strobe-light/challenges)
|
|
|
|
* [quiz](/lessons/strobe-light/quiz)
|
|
|
|
* [quiz answers](/lessons/strobe-light/quiz-answers)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2016-03-30 01:17:34 +02:00
|
|
|
## Documentation
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2016-04-05 07:33:13 +02:00
|
|
|
```cards
|
2016-03-30 01:17:34 +02:00
|
|
|
led.plot(0, 0)
|
|
|
|
led.unplot(0, 0)
|
2016-04-05 07:33:13 +02:00
|
|
|
for (let i = 0; i < 5; i++) {}
|
2016-03-30 01:17:34 +02:00
|
|
|
basic.pause(100)
|
|
|
|
```
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
## Objectives
|
|
|
|
|
|
|
|
* learn how to repeat code a fixed number of times
|
|
|
|
* learn how to turn on a LED light on the LED screen. Specify with LED using x, y coordinates
|
|
|
|
* learn how to turn off a LED light on the LED screen. Specify which LED which x, y coordinates
|
|
|
|
* learn how to pause program execution for the specified number of milliseconds
|