2016-06-24 08:52:24 +02:00
|
|
|
# Shake
|
|
|
|
|
2016-11-01 18:42:42 +01:00
|
|
|
You can find when someone is shaking the @boardname@ by checking its
|
2016-11-02 01:44:37 +01:00
|
|
|
**accelerometer** (it finds whether the @boardname@ is speeding up or
|
2016-06-24 08:52:24 +02:00
|
|
|
slowing down).
|
|
|
|
|
|
|
|
Unscramble these blocks in the editor to show a frownie when someone
|
2016-11-02 01:44:37 +01:00
|
|
|
shakes the @boardname@. (Ouch!)
|
2016-06-24 08:52:24 +02:00
|
|
|
|
|
|
|
```shuffle
|
|
|
|
input.onGesture(Gesture.Shake, () => {
|
|
|
|
basic.showLeds(`
|
|
|
|
. . . . .
|
|
|
|
. # . # .
|
|
|
|
. . . . .
|
|
|
|
. # # # .
|
|
|
|
# . . . #`);
|
|
|
|
});
|
|
|
|
```
|
2016-11-01 18:42:42 +01:00
|
|
|
Click **Download** to move your program to the @boardname@!
|
2016-06-24 08:52:24 +02:00
|
|
|
|
2016-06-24 22:27:34 +02:00
|
|
|
### ~button /getting-started/coin-flipper
|
|
|
|
NEXT: COIN FLIPPER GAME
|
|
|
|
### ~
|