pxt-calliope/docs/reference/basic.md
Peli de Halleux cdd4798945 namspace docs
2016-04-05 13:23:42 -07:00

411 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(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);