pxt-ev3/docs/fll.md

111 lines
5.2 KiB
Markdown
Raw Normal View History

# MakeCode for _FIRST_ LEGO League
2018-11-01 15:46:43 +01:00
![FIRST LEGO League logo](/static/fll/fll-logo.png)
2019-09-06 17:33:25 +02:00
**For teams participating in City Shaper challenge**, you can use MakeCode for your challenge (see [City Shaper Challenge, page 7 bottom](https://firstinspiresst01.blob.core.windows.net/fll/2020/city-shaper-game-guide-pdf.pdf)!
Weve compiled a list of resources and information that we hope will be helpful for you.
2018-11-01 15:46:43 +01:00
2019-08-30 21:03:43 +02:00
* **Got a question? Post it on the forums** at https://forum.makecode.com/
2018-11-01 15:46:43 +01:00
## FAQ
### I found a bug what do I do?
2019-08-30 21:03:43 +02:00
If you found a bug, please try if it hasn't been fixed yet! Go to https://makecode.mindstorms.com/beta and try if the bug is corrected. Otherwise, please tell us at https://forum.makecode.com/.
2018-11-01 15:46:43 +01:00
### How do I use MakeCode with my EV3?
* You will need to install the latest EV3 firmware on your brick. Instructions on how to do that are located here: https://makecode.mindstorms.com/troubleshoot.
* You will need a computer with a USB port to connect to the EV3 in order to download your programs.
* You will need internet access and a browser on your computer to get to https://makecode.mindstorms.com.
2019-09-12 04:37:26 +02:00
* You can [install the app](/offline-app) to use the editor offline.
2018-11-01 15:46:43 +01:00
2019-09-09 06:29:27 +02:00
### I know LabView, how is MakeCode different?
We have compiled a guide for EV3 LabView users at https://makecode.mindstorms.com/labview.
2018-11-01 15:46:43 +01:00
### Whats the best way to get started with MakeCode?
2019-09-06 17:33:25 +02:00
Go to https://makecode.mindstorms.com. The home screen is filled with videos, tutorials and examples that might be relevant for your missions.
2018-11-01 15:46:43 +01:00
On the home page, scroll down to the **FLL / City Shaper / Crane Mission** section for specific lessons related to Mission 2.
2018-11-01 15:46:43 +01:00
### Can I load both LEGO MINDSTORMS EV3 Software and MakeCode programs onto my EV3?
Yes.
2019-09-12 04:37:26 +02:00
### Does it work without internet?
To make sure the editor works without internet, install the [offline app](/offline-app)!
2018-11-01 15:46:43 +01:00
### How do I figure out what a block does?
You can right-click on any block and select “Help” in the context menu to open the documentation page describing what that block does.
![Select help in context menu for block](/static/fll/context-help.jpg)
### How do I program in JavaScript?
2018-11-12 21:02:19 +01:00
Click the **JavaScript** button at the top of the page to get to the JavaScript editor. Students can drag and drop code snippets from the Toolbox on the left, or type directly in the editor. You can switch back and forth between **Blocks** and **JavaScript** as you program.
![Coding in JavaScript](/static/fll/code-js.gif)
2018-11-01 15:46:43 +01:00
Also, watch the [Text-based Coding](https://legoeducation.videomarketingplatform.co/v.ihtml/player.html?token=3513a83b87fe536b2dc512237465fd1b&source=embed&photo%5fid=35719471) video for more about coding using the JavaScript editor.
2018-11-01 15:46:43 +01:00
### How do I use the Simulator?
2018-11-12 16:47:31 +01:00
The Simulator will show the physical representation of your code blocks. For example, based on this code snippet, the Simulator will show the touch sensor on Port 1, and a large motor on Port D.
2018-11-01 15:46:43 +01:00
```blocks
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
motors.largeD.run(50)
})
```
2018-11-12 21:02:19 +01:00
![Simulator demonstration](/static/fll/simulator.gif)
2018-11-01 15:46:43 +01:00
Note that the Simulator is also interactive, so you can simulate inputs with any of the sensors.
See the video [Block-based Coding and Simulation](https://legoeducation.videomarketingplatform.co/v.ihtml/player.html?token=629730c938e452f0fd7653fbc4708166&source=embed&photo%5fid=35719470) for more about using the simulator.
2018-11-01 15:46:43 +01:00
### How do I save my programs?
MakeCode will automatically save your recent projects in the browser. However, you can also save a copy of your project as a file on your computer:
* From the **Settings** menu, select **Save Project**
* This will download your program from the browser as a _lego-myproject.uf2_ file
![Save project menu selection](/static/fll/save-project.jpg)
* You can import your saved projects by clicking the Import button on the Home Page
![Import button on home screen](/static/fll/import-button.jpg)
### How do I share my programs?
2018-11-12 21:02:19 +01:00
You can share your projects by clicking on the **share** button in the top left of the screen. This will create a URL which you can send others to open and view your project.
2018-11-01 15:46:43 +01:00
2018-11-12 21:02:19 +01:00
![Share button in editor](/static/fll/share-button.jpg)
![Share button and dialogs demo](/static/fll/share-program.gif)
Sharing programs is also shown in the [Tips and Tricks](https://legoeducation.videomarketingplatform.co/v.ihtml/player.html?token=5c594c2373367f7870196f519f3bfc7a&source=embed&photo%5fid=35719472) video.
2018-11-01 15:46:43 +01:00
### Why can't I delete my program (*.uf2) files from the Brick?
There's a bug in the firmware which prevents you from deleting the programs (``*.uf2`` files) from your EV3 Brick. There isn't a firmware update to fix this yet.
We have prepared a special program that lets you delete UF2 files from the brick.
Download [these PDF instructions](/file-manager.pdf) and drop the PDF on the brick drive.
This will present you with an menu for deleting files.
For other common questions, try the FAQ page https://makecode.mindstorms.com/faq.
2018-11-01 15:46:43 +01:00
2018-11-12 21:02:19 +01:00
## Workarounds
2018-11-12 16:49:04 +01:00
1. Deleting Programs from the EV3 brick
>* Description: Unable to delete program files from the EV3 brick after downloading them
>* Status: LEGO Education team is working on a fix, no estimated date yet