add full screen options
This commit is contained in:
parent
73d5dc81c5
commit
55d2b9ea1e
@ -1,6 +1,6 @@
|
|||||||
# Flashing Heart
|
# Flashing Heart
|
||||||
|
|
||||||
## Step 1
|
## Step 1 @fullscreen
|
||||||
|
|
||||||
Place the ``||basic:show leds||`` block in the ``||basic:on start||`` block and draw a heart.
|
Place the ``||basic:show leds||`` block in the ``||basic:on start||`` block and draw a heart.
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ basic.showLeds(`
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 2
|
## Step 2 @fullscreen
|
||||||
|
|
||||||
Place another ``||basic:show leds||`` block under the heart to make it blink. Check in the simulator to see the heart blink.
|
Place another ``||basic:show leds||`` block under the heart to make it blink. Check in the simulator to see the heart blink.
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ basic.showLeds(`
|
|||||||
. . # . .`);
|
. . # . .`);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 3
|
## Step 3 @fullscreen
|
||||||
|
|
||||||
Move the blocks inside the ``||basic:forever||`` to repeat the animation.
|
Move the blocks inside the ``||basic:forever||`` to repeat the animation.
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ basic.forever(() => {
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 4
|
## Step 4 @fullscreen
|
||||||
|
|
||||||
Place more ``||basic:show leds||`` blocks to create your own animation.
|
Place more ``||basic:show leds||`` blocks to create your own animation.
|
||||||
|
|
||||||
@ -83,6 +83,6 @@ basic.forever(() => {
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 5
|
## Step 5 @fullscreen
|
||||||
|
|
||||||
If you have a @boardname@ connected, click ``|Download|`` to transfer your code and watch the hearts flash!
|
If you have a @boardname@ connected, click ``|Download|`` to transfer your code and watch the hearts flash!
|
||||||
|
@ -10,7 +10,7 @@ basic.forever(() => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 2
|
## Step 2 @fullscreen
|
||||||
|
|
||||||
Look at the simulator and make sure it shows up your name on the screen.
|
Look at the simulator and make sure it shows up your name on the screen.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Smiley Buttons
|
# Smiley Buttons
|
||||||
|
|
||||||
## Step 1
|
## Step 1 @fullscreen
|
||||||
|
|
||||||
Place a ``||input:on button pressed||`` block to run code when button **A** is pressed.
|
Place a ``||input:on button pressed||`` block to run code when button **A** is pressed.
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 2
|
## Step 2 @fullscreen
|
||||||
|
|
||||||
Place a ``||basic:show leds||`` block inside ``||input:on button pressed||`` to display a smiley on the screen. Press the **A** button in the simulator to see the smiley.
|
Place a ``||basic:show leds||`` block inside ``||input:on button pressed||`` to display a smiley on the screen. Press the **A** button in the simulator to see the smiley.
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 3
|
## Step 3 @fullscreen
|
||||||
|
|
||||||
Add ``||input:on button pressed||`` and ``||basic:show leds||`` blocks to display a frowny when button **B** is pressed.
|
Add ``||input:on button pressed||`` and ``||basic:show leds||`` blocks to display a frowny when button **B** is pressed.
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ input.onButtonPressed(Button.B, () => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 4
|
## Step 4 @fullscreen
|
||||||
|
|
||||||
Add a secret mode that happens when **A** and **B** are pressed together. For this case, add multiple ``||basic:show leds||`` blocks to create an animation.
|
Add a secret mode that happens when **A** and **B** are pressed together. For this case, add multiple ``||basic:show leds||`` blocks to create an animation.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user