pxt-calliope/docs/reference/basic.md
2016-08-08 13:08:15 -07:00

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

See Also

showNumber, showLeds, showString, clearScreen, forever, pause, plotLeds, showAnimation