Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 785 Bytes

strobe-light.rst

File metadata and controls

41 lines (27 loc) · 785 Bytes

Lesson 9 strobe light lesson

Learn how to create a blinking LED script.

Topic

For Loop

Quick links

.. toctree::
   :maxdepth: 4

   ./strobe-light/activity
   ./strobe-light/challenges
   ./strobe-light/quiz
   ./strobe-light/quiz-answers



Documentation

led.plot(0, 0)
led.unplot(0, 0)
for (let i = 0; i < 5; i++) {}
basic.pause(100)

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