This commit is contained in:
Michael Elliot Braun 2016-03-29 15:14:40 -07:00
commit c6e2391bcd
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, () => { input.onGesture(Gesture.Shake, () => {
basic.showLeds(` basic.showLeds(`
. . . . . . . . . .
@ -44,6 +52,7 @@ input.onGesture(Gesture.Shake, () => {
. # # # . . # # # .
# . . . #`); # . . . #`);
}); });
basic.showString("BBC micro:bit");
``` ```
## C++ Runtime ## C++ Runtime

View File

@ -1,6 +1,6 @@
{ {
"name": "kindscript-microbit", "name": "kindscript-microbit",
"version": "0.0.11", "version": "0.0.14",
"description": "BBC micro:bit target for KindScript", "description": "BBC micro:bit target for KindScript",
"keywords": [ "keywords": [
"JavaScript", "JavaScript",
@ -30,6 +30,6 @@
"typescript": "^1.8.7" "typescript": "^1.8.7"
}, },
"dependencies": { "dependencies": {
"kindscript": "0.1.117" "kindscript": "0.1.119"
} }
} }