35 lines
410 B
Markdown
35 lines
410 B
Markdown
|
# Basic
|
||
|
|
||
|
Provides access to basic micro:bit functionality.
|
||
|
|
||
|
```cards
|
||
|
basic.showNumber(0);
|
||
|
basic.showLeds(`
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
. . # . .
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
`);
|
||
|
basic.showString("Hello!");
|
||
|
basic.clearScreen();
|
||
|
basic.forever(() => {
|
||
|
|
||
|
});
|
||
|
basic.pause(100);
|
||
|
basic.plotLeds(`
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
. . # . .
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
`);
|
||
|
basic.showAnimation(`
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
. . # . .
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
`);
|
||
|
```
|