1 parent
c9e8cd4e78
commit
4f57c77b30
8 files changed
+140
-127
No files matched your search
@@ -122,22 +122,22 @@ input.onButtonPressed(Button.B, () => {
|
||||
|
||||
```blocks
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
})
|
||||
input.onButtonPressed(Button.B, () => {
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
. # # # .
|
||||
# . . . #
|
||||
`)
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
. # # # .
|
||||
# . . . #
|
||||
`)
|
||||
})
|
||||
```
|
||||
|
||||
@@ -197,7 +197,7 @@ Notes
|
||||
|
||||
Clean up your coding workspace before you do a final save! What does this mean?
|
||||
|
||||
* It means that only the code and blocks that you are using in your program are still in the workspace.
|
||||
* It means that only the code and blocks that you are using in your program are still in the workspace.
|
||||
* Remove (delete) any other blocks that you may have dragged into the coding workspace as you were experimenting and building your program.
|
||||
|
||||
## Save and download
|
||||
@@ -208,23 +208,23 @@ Here is the complete program:
|
||||
```blocks
|
||||
// Display a happy face when button A is pressed.
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
})
|
||||
// Display a sad face when button B is pressed.
|
||||
input.onButtonPressed(Button.B, () => {
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
. # # # .
|
||||
# . . . #
|
||||
`)
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
. # # # .
|
||||
# . . . #
|
||||
`)
|
||||
})
|
||||
basic.clearScreen()
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user