Final edits and image sizing for csintro.
This commit is contained in:
@ -148,7 +148,26 @@ Remember, MakeCode automatically compiles and runs your program, so all you need
|
||||
* Feel free to play around with turning LEDs on or off in the ‘show leds’ blocks until you get the images you want.
|
||||
* Remember to save your code.
|
||||
|
||||
>
|
||||
```sim
|
||||
basic.forever(() => {
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
# . . . #
|
||||
. # # # .
|
||||
`)
|
||||
basic.pause(800)
|
||||
basic.showLeds(`
|
||||
. . . . .
|
||||
. # . # .
|
||||
. . . . .
|
||||
. # # # .
|
||||
# . . . #
|
||||
`)
|
||||
basic.pause(800)
|
||||
})
|
||||
```
|
||||
|
||||
## Commenting your code
|
||||
It is good practice to add comments to your code. Comments can be useful in a number of ways. Comments can help you remember what a certain block of code does and/or why you chose to program something the way you did. Comments also help others reading your code to understand these same things.
|
||||
|
Reference in New Issue
Block a user