Lessons fixes (#1609)
* fixing a bunch of lessons * more fixes * more fixes * more cleanup * Additional fixes
This commit is contained in:
@ -8,7 +8,7 @@ Welcome! This tutorial will help you display an arrow pointing toward the logo!
|
||||
|
||||
## ~
|
||||
|
||||
Using the **accelerometer** sensor, the @boardname@ can detect when the **logo** is oriented **up**. We call that the **logo up** event. We will use `on logo up` to register an event handler that will run when the **logo up** event happens.
|
||||
Using the **accelerometer** sensor, the @boardname@ can detect when the **logo** is oriented **up**. We call that the **logo up** event. We will use ``||input:on logo up||`` to register an event handler that will run when the **logo up** event happens.
|
||||
|
||||
```blocks
|
||||
input.onGesture(Gesture.LogoUp, () => {
|
||||
@ -16,7 +16,7 @@ input.onGesture(Gesture.LogoUp, () => {
|
||||
})
|
||||
```
|
||||
|
||||
When the @boardname@ goes logo up, the code nested under the `on logo up` function will run. Let's add a line of code to show LEDs in there.
|
||||
When the @boardname@ goes logo up, the code nested under the ``||input:on logo up||`` function will run. Let's add a line of code to show LEDs in there.
|
||||
|
||||
```blocks
|
||||
input.onGesture(Gesture.LogoUp, () => {
|
||||
|
@ -7,7 +7,7 @@ Coding challenges for magic logo.
|
||||
Complete the [magic logo](/lessons/magic-logo/activity) activity and your code will look like this:
|
||||
|
||||
```blocks
|
||||
input.onLogoUp(() => {
|
||||
input.onGesture(Gesture.LogoUp, function () {
|
||||
basic.showLeds(`
|
||||
. . # . .
|
||||
. # # # .
|
||||
@ -25,7 +25,7 @@ input.onLogoUp(() => {
|
||||
How about when the logo is down? We should display an arrow pointing downward!
|
||||
|
||||
```blocks
|
||||
input.onLogoUp(() => {
|
||||
input.onGesture(Gesture.LogoUp, function () {
|
||||
basic.showLeds(`
|
||||
. . # . .
|
||||
. # # # .
|
||||
@ -34,7 +34,7 @@ input.onLogoUp(() => {
|
||||
. . # . .
|
||||
`)
|
||||
})
|
||||
input.onLogoDown(() => {
|
||||
input.onGesture(Gesture.LogoDown, function () {
|
||||
basic.showLeds(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
|
@ -28,7 +28,7 @@ The `logo up` event is raised when...
|
||||
<br/>
|
||||
|
||||
```blocks
|
||||
input.onLogoUp(() => {
|
||||
input.onGesture(Gesture.LogoUp, function () {
|
||||
})
|
||||
```
|
||||
|
||||
@ -43,7 +43,7 @@ input.onLogoUp(() => {
|
||||
<br/>
|
||||
|
||||
```blocks
|
||||
input.onLogoDown(() => {
|
||||
input.onGesture(Gesture.LogoDown, function () {
|
||||
basic.showLeds(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
|
@ -8,7 +8,7 @@ show an image that points up when the logo is up.
|
||||
|
||||
Use the hints from the [magic logo activity](/lessons/magic-logo/activity) to answer this quiz!
|
||||
|
||||
## 1. Define what `input->on logo up` does
|
||||
## 1. Define what ``||input:on logo up||`` does
|
||||
|
||||
<br/>
|
||||
|
||||
|
Reference in New Issue
Block a user