2016-04-05 22:23:42 +02:00
|
|
|
# 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(`
|
|
|
|
. . . . .
|
|
|
|
. . . . .
|
|
|
|
. . # . .
|
|
|
|
. . . . .
|
|
|
|
. . . . .
|
|
|
|
`);
|
|
|
|
```
|
2016-08-08 22:08:15 +02:00
|
|
|
|
|
|
|
### See Also
|
|
|
|
|
2016-10-23 08:04:08 +02:00
|
|
|
[showNumber](/reference/basic/show-number), [showLeds](/reference/basic/show-leds), [showString](/reference/basic/show-string),
|
|
|
|
[clearScreen](/reference/basic/clear-screen), [forever](/reference/basic/forever), [pause](/reference/basic/pause),
|
|
|
|
[showAnimation](/reference/basic/show-animation)
|