GRADE 7 · COMPUTING · UNIT 6 · LESSON 6.10
Sequencing and pattern recognition: Getting the message across
Light brightness
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Light brightness
Brightness settings range from 0 to 9. Intermediate numbers are levels, not guaranteed fractions of perceived brightness. A complete alarm plan specifies each image, its setting, duration and final state.
- Explain the meaning of LED brightness values from zero to nine.
- Plan and implement a dim, bright and blank sequence using image grids.

Explore the clues
Tap one card to find out more.
Understand the idea
Brightness settings range from 0 to 9. Intermediate numbers are levels, not guaranteed fractions of perceived brightness. A complete alarm plan specifies each image, its setting, duration and final state.
Concept to practise: Light brightness.
Work through an example
A plus at setting 4, then 9, then all off gives three distinct frames. With sleep(500) after each, the requested waits are half a second. The blank final image explicitly turns the LEDs off.
Try before your workbook
For a letter P shown at level 1, then 9, then blank, what must remain identical between the first two grids and what must change?
Check my readiness thinking
Keep the intended P positions identical and change their non-zero brightness digits from 1 to 9. Set every position to zero for the blank frame. Check actual visibility on suitable hardware rather than claiming level 4 is exactly half as bright.
Your original programs and learning models
These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.
Choose brightness settings deliberately
A value of 4 is not a promise of exactly half perceived brightness. Evaluate visibility on the intended device and in the intended viewing conditions.
Read a mixed-brightness image
Each five-by-five table gives exact LED brightness digits: 0 is off; 9 is maximum. Rows run top to bottom and columns left to right.
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 9 | 4 | 1 | 0 | 0 |
| 2 | 9 | 4 | 1 | 0 | 0 |
| 3 | 9 | 4 | 1 | 1 | 1 |
| 4 | 9 | 4 | 4 | 4 | 4 |
| 5 | 9 | 9 | 9 | 9 | 9 |
Compare dim, maximum and blank frames
Each five-by-five table gives exact LED brightness digits: 0 is off; 9 is maximum. Rows run top to bottom and columns left to right.
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 4 | 0 | 0 |
| 2 | 0 | 0 | 4 | 0 | 0 |
| 3 | 4 | 4 | 4 | 4 | 4 |
| 4 | 0 | 0 | 4 | 0 | 0 |
| 5 | 0 | 0 | 4 | 0 | 0 |
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 9 | 0 | 0 |
| 2 | 0 | 0 | 9 | 0 | 0 |
| 3 | 9 | 9 | 9 | 9 | 9 |
| 4 | 0 | 0 | 9 | 0 | 0 |
| 5 | 0 | 0 | 9 | 0 | 0 |
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | 0 | 0 | 0 | 0 |
| 3 | 0 | 0 | 0 | 0 | 0 |
| 4 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 | 0 | 0 |
Original program model
from microbit import *
frame_1 = Image("00400:00400:44444:00400:00400")
frame_2 = Image("00900:00900:99999:00900:00900")
frame_3 = Image("00000:00000:00000:00000:00000")
display.show(frame_1)
sleep(500)
display.show(frame_2)
sleep(500)
display.show(frame_3)
sleep(500)Plan the required letter P sequence
Each five-by-five table gives exact LED brightness digits: 0 is off; 9 is maximum. Rows run top to bottom and columns left to right.
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 0 | 1 | 1 | 1 | 0 |
| 2 | 0 | 1 | 0 | 1 | 0 |
| 3 | 0 | 1 | 1 | 1 | 0 |
| 4 | 0 | 1 | 0 | 0 | 0 |
| 5 | 0 | 1 | 0 | 0 | 0 |
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 0 | 9 | 9 | 9 | 0 |
| 2 | 0 | 9 | 0 | 9 | 0 |
| 3 | 0 | 9 | 9 | 9 | 0 |
| 4 | 0 | 9 | 0 | 0 | 0 |
| 5 | 0 | 9 | 0 | 0 | 0 |
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | 0 |
| 2 | 0 | 0 | 0 | 0 | 0 |
| 3 | 0 | 0 | 0 | 0 | 0 |
| 4 | 0 | 0 | 0 | 0 | 0 |
| 5 | 0 | 0 | 0 | 0 | 0 |
Predict and debug the letter L
Each five-by-five table gives exact LED brightness digits: 0 is off; 9 is maximum. Rows run top to bottom and columns left to right.
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 5 | 0 | 0 | 0 | 0 |
| 2 | 5 | 0 | 0 | 0 | 0 |
| 3 | 5 | 0 | 0 | 0 | 0 |
| 4 | 5 | 0 | 0 | 0 | 0 |
| 5 | 5 | 5 | 5 | 5 | 5 |
| Row / column | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| 1 | 9 | 0 | 0 | 0 | 0 |
| 2 | 9 | 0 | 0 | 0 | 0 |
| 3 | 9 | 0 | 0 | 0 | 0 |
| 4 | 9 | 0 | 0 | 0 | 0 |
| 5 | 9 | 9 | 9 | 9 | 9 |
ORIGINAL SEQUENCE2DEBUG STARTER
from microbit import *
frame_1 = Image("50000:50000:50000:50000:55555")
frame_2 = Image("90000:90000:90000:90000:99990")
display.show(frame_2)
sleep(500)
display.show(frame_1)
sleep(500)Use a saved plan to edit the starter
Original program model
from microbit import *
frame_1 = Image("00000:00000:00000:00000:00000")
frame_2 = Image("00000:00000:00000:00000:00000")
frame_3 = Image("00000:00000:00000:00000:00000")
display.show(frame_1)
sleep(500)
display.show(frame_2)
sleep(500)
display.show(frame_3)
sleep(500)Practice files for this lesson
Save a copy of these original PaxaKids learner files before editing in suitable software. Some code and datasets deliberately need completion or repair. Downloading a file does not run it. Use invented data; record actual tests separately from predictions. Native software practice files are not print-optimised; use the student PDF for printing.

Try one step with Paxa!
Use supplied fictional records. Do not disclose personal details, upload private photos or bypass browser warnings to complete an activity. Save personal responses before leaving.
Our Unit 6 learning path
- Lesson 6.1: Prototyping
- Lesson 6.2: Pattern recognition
- Lesson 6.3: Patterns between text-based programming languages
- Lesson 6.4: Boolean selection and sub-routines
- Lesson 6.5: Project plans and test plans
- Lesson 6.6: Identifying errors and debugging
- Lesson 6.7: Sequences and lights
- Lesson 6.8: Creating a moving sequence of lights
- Lesson 6.9: Extending a light sequence
- Lesson 6.10: Light brightness
- Lesson 6.11: Loading-screen and name-sequence extensions
- Lesson 6.12: Final project: Sound-triggered visual alarm
- Lesson 6.13: Evaluation
- Lesson 6.14: What can you do?
For grown-ups: using this lesson
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.
2. Fill in your workbook
Read the teaching and the complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 8 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.
Student worksheet only · PDF · 8.3 MiB · No answer key included
TRY FIRST, THEN CHECK TOGETHER
Download the student worksheet →4. Answers & guidance
Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.
Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.
Show answers for all 8 worksheets
Worksheet 1
- Question 1: Which range is valid for an individual LED setting? integers 0 to 9
- Question 2: Which conclusion needs an actual viewing test? whether a chosen sequence is clear in the intended classroom
Worksheet 2
- Question 3: What setting is at row 1, column 2? 4
- Question 4: What setting is at row 5, column 5? 9
- Question 5: What does the 0 at row 1, column 5 mean? the LED is off
Worksheet 3
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 4
- Question 6: Which feature stays the same between the first two frames? the positions that form P
- Question 7: How many lit positions form P in either visible frame? 10
Worksheet 5
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 6
- Question 8: Which is the required final state for the P task? all LEDs off
Worksheet 7
- Question 9: Complete FlowchartPlan_Paxa.docx with the ordered flowchart and all three P grids. Edit SequenceStart_Paxa.py to match it, save, connect and flash a compatible micro:bit. Identify the plan/source files and record expected versus actual shape, brightness order, three half-second waits and blank completion. Retain any correction/retest, or mark unavailable practical steps Pending. Require a complete matching plan and source. The dim P rows are 01110, 01010, 01110, 01000, 01000. The maximum P rows are 09990, 09090, 09990, 09000, 09000. The last frame has five rows of 00000. Show each frame in that order, with a 500 ms wait after each, then Stop. Check all 25 positions in every frame; the displayed blank frame leaves the final state off. Identify the saved plan and source, transfer and observation method, actual results and any retest, or mark practical evidence Pending. Source, controlled stubs and simulator preparation are distinct from physical-device evidence. No numeric scores. Grown-up review; personal evidence is required.
Worksheet 8
- Question 10: Predict the letter L outputs, then open and flash Sequence2Debug_Paxa.py. Identify and correct its errors, save and flash the revision, and record expected/actual results and a retest finding for shape, order and waits. Discuss with a partner how brightness control could help the visual alarm, what viewing conditions matter and which setting you would test next. Mark unavailable practical or partner steps Pending. Predict L at setting 5, then at setting 9, with a 500 ms wait after each. The intended rows are 50000 four times and 55555, followed by 90000 four times and 99999. The final bright L remains. The faulty program shows the bright frame first and omits its last bottom-row light, using 99990. Fix that digit and the order. Retain source revisions and actual test/retest evidence or Pending. Discuss visibility, contrast, timing and classroom viewing conditions; do not assume setting 4 is exactly half perceived brightness or that maximum is always best. Record the partner discussion or Pending. No numeric scores. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing 7 Student’s Book — pages 217–220
- PaxaKids Grade 7 Computing Lesson 6.10: Light brightness — pages 1–8
Computing for your homeschool day
Explore Light brightness with this free Grade 7 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.
Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.
Understand your results
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.
For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.
The book pages identify the related teaching topic. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.
Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.
