pxt-calliope/docs/lessons/strobe-light.md
Michael Elliot Braun a14585d36f updating lessons
2016-03-30 15:54:19 -07:00

837 B

strobe light lesson

Learn how to create a blinking LED script. #LED #screen #plot #docs

@video td/videos/strobe-light-0

Topic

For Loop

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