pxt-calliope/docs/reference/basic.md
Peli de Halleux 81b8b1b69c updated docs
2016-05-05 11:16:14 -07:00

410 B

Basic

Provides access to basic micro:bit functionality.

basic.showNumber(0);
basic.showLeds(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);
basic.showString("Hello!");
basic.clearScreen();
basic.forever(() => {
    
});
basic.pause(100);
basic.plotLeds(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);
basic.showAnimation(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);