Lesson 9 flashing heart blocks lesson

Learn how to create LED images with a global variable.

Topic

Pause

Documentation

basic.forever(() => {})
basic.showLeds(`
    . . . . .
    . . . . .
    . . # . .
    . . . . .
    . . . . .
    `)
basic.pause(100)
basic.clearScreen()

Objectives

  • learn how to repeat code in the background forever
  • learn how to show LEDs on the LED screen
  • learn how to pause your code for the specified number of milliseconds
  • learn how to turn off all the LED lights on the LED screen