47 lines
851 B
Markdown
Raw Normal View History

2016-03-25 16:47:20 -07:00
# blink blocks lesson
2016-04-01 16:22:47 -07:00
Learn how to create a blinking LED.
2016-03-25 16:47:20 -07:00
### @video td/videos/blink-0
## Topic
Plot
## Quick links
* [activity](/microbit/lessons/blink/activity)
* [quiz](/microbit/lessons/blink/quiz)
* [quiz answers](/microbit/lessons/blink/quiz-answers)
* [challenges](/microbit/lessons/blink/challenges)
## 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-29 15:59:00 -07:00
## Documentation
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
```docs
led.plot(0, 0)
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
led.unplot(0, 0)
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
basic.pause(100)
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
basic.forever(() => {
})
2016-03-25 16:47:20 -07:00
2016-03-29 15:59:00 -07:00
```
2016-03-25 16:47:20 -07: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