More one pager project edits (#597)

This commit is contained in:
Galen Nickel
2017-12-06 20:23:17 -08:00
committed by Peli de Halleux
parent 7ef65715d7
commit f7a2a24ed8
6 changed files with 59 additions and 61 deletions

View File

@ -1,15 +1,15 @@
# compass
![](/static/mb/projects/a5-compass.png)
Display the direction that the @boardname@ is facing using the compass
# Compass
## ~avatar avatar
Welcome! This guided tutorial will show you how to program a script that displays the direction the @boardname@ is pointing. Let's get started!
Welcome! This guided tutorial will show you how to program a script that displays which direction the @boardname@ is pointing. Let's get started!
## ~
![](/static/mb/projects/a5-compass.png)
Display the direction that the @boardname@ is facing using the compass.
## Step 1
Create a loop that will continuously update the reading of the compass.
@ -33,7 +33,7 @@ basic.forever(() => {
## Step 3
If `degrees` is less than `45` or greater than `315`,
then the compass heading is mostly pointing toward North. Display `N` on the @boardname@.
then the compass heading is mostly pointing toward **North**. Display `N` on the @boardname@.
```blocks
basic.forever(() => {
@ -46,8 +46,7 @@ basic.forever(() => {
## Step 4
If `degrees` is less than 135, the @boardname@ is mostly pointing East. Display `E` on the @boardname@.
If `degrees` is less than `135`, the @boardname@ is mostly pointing **East**. Display `E` on the @boardname@.
```blocks
basic.forever(() => {
@ -63,8 +62,7 @@ basic.forever(() => {
## Step 5
If `degrees` is less than 225, the @boardname@ is mostly pointing South. Display `S` on the @boardname@.
If `degrees` is less than `225`, the @boardname@ is mostly pointing **South**. Display `S` on the @boardname@.
```blocks
basic.forever(() => {
@ -83,7 +81,7 @@ basic.forever(() => {
## Step 6
If none of these conditions returned true, then the @boardname@ must be pointing West. Display `W` on the @boardname@.
If none of these conditions returned true, then the @boardname@ must be pointing **West**. Display `W` on the @boardname@.
```blocks
basic.forever(() => {