Fix indentation of showLeds in a couple of projects.

This commit is contained in:
Sam El-Husseini 2016-10-13 11:32:25 -07:00
parent c817f9e3ff
commit b0392da8b1
2 changed files with 77 additions and 65 deletions

View File

@ -11,7 +11,8 @@ basic.showLeds(`
# # # # # # # # # #
# # # # # # # # # #
. # # # . . # # # .
. . # . .`); . . # . .`
);
basic.pause(500); basic.pause(500);
basic.clearScreen(); basic.clearScreen();
basic.pause(500); basic.pause(500);
@ -33,7 +34,8 @@ basic.showLeds(`
# # # # # # # # # #
# # # # # # # # # #
. # # # . . # # # .
. . # . .`); . . # . .`
);
``` ```
## Step 2 ## Step 2
@ -62,7 +64,8 @@ basic.showLeds(`
# # # # # # # # # #
# # # # # # # # # #
. # # # . . # # # .
. . # . .`); . . # . .`
);
basic.pause(500); basic.pause(500);
basic.clearScreen(); basic.clearScreen();
}) })
@ -79,7 +82,8 @@ basic.showLeds(`
# # # # # # # # # #
# # # # # # # # # #
. # # # . . # # # .
. . # . .`); . . # . .`
);
basic.pause(500); basic.pause(500);
basic.clearScreen(); basic.clearScreen();
basic.pause(500); basic.pause(500);
@ -98,7 +102,8 @@ basic.showLeds(`
# # # # # # # # # #
# # # # # # # # # #
. # # # . . # # # .
. . # . .`); . . # . .`
);
basic.pause(500); basic.pause(500);
basic.clearScreen(); basic.clearScreen();
basic.pause(500); basic.pause(500);
@ -107,7 +112,8 @@ basic.showLeds(`
# . # # # # . # # #
# . . . # # . . . #
. # # # . . # # # .
. . # . .`); . . # . .`
);
basic.pause(500); basic.pause(500);
basic.clearScreen(); basic.clearScreen();
basic.pause(500); basic.pause(500);

View File

@ -14,7 +14,8 @@ basic.showLeds(`
. # . # . . # . # .
. . . . . . . . . .
# . . . # # . . . #
. # # # .`); . # # # .`
);
``` ```
## Step 2 ## Step 2
@ -28,14 +29,16 @@ basic.showLeds(`
. # . # . . # . # .
. . . . . . . . . .
# . . . # # . . . #
. # # # .`); . # # # .`
);
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
basic.showLeds(` basic.showLeds(`
. # . # . . # . # .
. # . # . . # . # .
. . . . . . . . . .
. # # # . . # # # .
# . . . #`); # . . . #`
);
}); });
``` ```
@ -49,14 +52,16 @@ basic.showLeds(`
. # . # . . # . # .
. . . . . . . . . .
# . . . # # . . . #
. # # # .`); . # # # .`
);
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
basic.showLeds(` basic.showLeds(`
. # . # . . # . # .
. # . # . . # . # .
. . . . . . . . . .
. # # # . . # # # .
# . . . #`); # . . . #`
);
}); });
input.onButtonPressed(Button.B, () => { input.onButtonPressed(Button.B, () => {
basic.showLeds(` basic.showLeds(`
@ -64,6 +69,7 @@ input.onButtonPressed(Button.B, () => {
. # . # . . # . # .
. . . . . . . . . .
# . . . # # . . . #
. # # # .`); . # # # .`
);
}); });
``` ```