This commit is contained in:
Michael Elliot Braun
2016-03-29 15:14:40 -07:00
2 changed files with 11 additions and 2 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