Tutorial updates (#551)
* updated line following, added simulator step * full screen * resizing some images
This commit is contained in:
parent
96be357af1
commit
6f2fe212df
Binary file not shown.
Before Width: | Height: | Size: 723 KiB After Width: | Height: | Size: 70 KiB |
Binary file not shown.
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 51 KiB |
Binary file not shown.
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 6.3 KiB |
@ -104,8 +104,17 @@ forever(function () {
|
||||
})
|
||||
```
|
||||
|
||||
## Step 8
|
||||
## Step 8 @fullscreen
|
||||
|
||||
Now, plug your EV3 Brick into the computer with the USB cable, and click the **Download** button at the bottom of your screen. Follow the directions to save your program to the brick.
|
||||
Use the EV3 simulator to try out your code.
|
||||
|
||||
![Brick with color sensors tracking a yellow line](/static/tutorials/line-following/line-following.gif)
|
||||
|
||||
Move the slider under the Color Sensor to change the reflected light and check that motors
|
||||
are moving as you would expect!
|
||||
|
||||
## Step 9
|
||||
|
||||
Plug your EV3 Brick into the computer with the USB cable, and click the **Download** button at the bottom of your screen. Follow the directions to save your program to the brick.
|
||||
|
||||
Attach a Color Sensor to Port 3 of your brick, and attach your brick to a driving base with large motors attached to Ports B and C. See the instructions for building a _Driving Base with Color Sensor Down_. Test your program by positioning your robot to the right of a dark, thick line and then let it drive!
|
||||
|
@ -46,6 +46,12 @@ brick.showString("Press my button!", 1)
|
||||
|
||||
## Step 5
|
||||
|
||||
Try out your code in the EV3 simulator!
|
||||
|
||||
Press the ``Enter`` button and check that the image shows up as you expected.
|
||||
|
||||
## Step 6
|
||||
|
||||
Open the ``||brick:Brick||`` Toolbox drawer. Drag out a ``||brick:set status light||`` block onto the Workspace, and drop it into the ``||brick:on button||`` block after the ``||brick:show image||`` block.
|
||||
|
||||
```blocks
|
||||
@ -56,6 +62,6 @@ brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () {
|
||||
brick.showString("Press my button!", 1)
|
||||
```
|
||||
|
||||
## Step 6
|
||||
## Step 7
|
||||
|
||||
Now, plug your EV3 Brick into the computer with the USB cable, and click the **Download** button at the bottom of your screen. Follow the directions to save your program to the brick.
|
||||
Plug your EV3 Brick into the computer with the USB cable, and click the **Download** button at the bottom of your screen. Follow the directions to save your program to the brick.
|
||||
|
Loading…
Reference in New Issue
Block a user