pxt-calliope/olddocs/lessons/blink.md

37 lines
774 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# blink blocks lesson
2016-04-02 01:22:47 +02:00
Learn how to create a blinking LED.
2016-03-26 00:47:20 +01:00
## Topic
Plot
## Quick links
2016-04-13 17:27:45 +02:00
* [activity](/lessons/blink/activity)
* [quiz](/lessons/blink/quiz)
* [quiz answers](/lessons/blink/quiz-answers)
* [challenges](/lessons/blink/challenges)
2016-03-26 00:47:20 +01:00
## Prior learning / place of lesson in scheme of work
Learn how to control a blinking LED. We will be learning how to create a blinking app using forever as well as simple commands, such as plot, unplot and pause.
2016-03-30 00:59:00 +02:00
## Documentation
2016-03-26 00:47:20 +01:00
2016-04-05 07:33:13 +02:00
```cards
2016-03-30 00:59:00 +02:00
led.plot(0, 0)
led.unplot(0, 0)
basic.pause(100)
2016-04-05 07:33:13 +02:00
basic.forever(() => {})
2016-03-30 00:59:00 +02:00
```
2016-03-26 00:47:20 +01:00
## Objectives
* learn how to turn on LED lights on the LED screen
* learn how to turn off LED lights on the LED screen
* learn how to pause program execution for the specified number of milliseconds