Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 265 Bytes

for.md

File metadata and controls

15 lines (11 loc) · 265 Bytes

@extends

#examples

Example: Count to 4

This program will show the numbers 0, 1, 2, 3, and 4 one after another on the LED screen.

input.onButtonPressed(Button.A, () => {
    for(let i = 0; i < 5; ++i) {
        basic.showNumber(i)
    }
})