updated demo program

This commit is contained in:
Peli de Halleux 2016-03-29 14:19:56 -07:00
parent d5488a3ae8
commit 3ccec89f33
1 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,14 @@ input.onButtonPressed(Button.A, () => {
# . . . #
. # # # .`);
});
input.onButtonPressed(Button.B, () => {
basic.showLeds(`
. # . # .
# . # . #
# . . . #
. # . # .
. . # . .`);
});
input.onGesture(Gesture.Shake, () => {
basic.showLeds(`
. . . . .
@ -44,6 +52,7 @@ input.onGesture(Gesture.Shake, () => {
. # # # .
# . . . #`);
});
basic.showString("BBC micro:bit");
```
## C++ Runtime