pxt-calliope/docs/reference/js/lessons/strobe-light.md

77 lines
2.3 KiB
Markdown
Raw Normal View History

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
* [tutorial](/lessons/strobe-light/tutorial)
* [quiz](/lessons/strobe-light/quiz)
* [quiz answers](/lessons/strobe-light/quiz-answers)
* [challenges](/lessons/strobe-light/challenges)
2016-03-26 00:47:20 +01:00
## Class
Year 7
## Documentation
2016-04-13 17:27:45 +02:00
* **for loop**: [read more...](/reference/loops/for)
* **plot**: [read more...](/reference/led/plot)
* **unplot**: [read more...](/reference/led/unplot)
* **pause**: [read more...](/reference/basic/pause)
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
## Progression Pathways / Computational Thinking Framework
#### Algorithms
* Uses logical reasoning to predict outputs, showing an awareness of inputs. (AL)
* Understands that iteration is the repetition of a process such as a loop. (AL)
* Represents solutions using a structured notation. (AL) (AB)
#### Programming & Development
* Creates programs that implement algorithms to achieve given goals. (AL)
* Uses a variable and relational operators within a loop to govern termination. (AL) (GE)
* Uses a range of operators and expressions e.g. Boolean, and applies them in the context of program control. (AL)
#### Data & Data Representation
* Understands the difference between data and information. (AB)
* Defines data types: real numbers and Boolean. (AB)
#### Information Technology
* Collects, organises and presents data and information in digital content. (AB)
* Makes appropriate improvements to solutions based on feedback received, and can comment on the success of the solution. (EV)
Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algorithmic Thinking; EV = Evaluation; GE = Generalisation
## Activity
* time: 10 min.
2016-04-13 17:27:45 +02:00
* [tutorial](/lessons/strobe-light/tutorial)
* [quiz](/lessons/strobe-light/quiz)
2016-03-26 00:47:20 +01:00
## Extended Activity
* time: 20 min.
2016-04-13 17:27:45 +02:00
* [challenges](/lessons/strobe-light/challenges)
2016-03-26 00:47:20 +01:00
## Homework
2016-04-13 17:27:45 +02:00
* Extended Activity: [challenges](/lessons/strobe-light/challenges)
2016-03-26 00:47:20 +01:00