Downloading Files
- Unzip the lab zip file labname.zip (right click on the FitTrackLab.zip and select Extract All. Then, just pick where you want to save your copy of these files).
- Notice there are three folders in in the Lab directory:
- HexFiles: This folder holds all of the .hex files, or files that are ready to be run on a Micro::Bit.
- JavaScript: This folder holds all of the JavaScript code for the labs. This includes base code and completed code. The base code is code that you can start with instead of creating new projects from scratch. Completed code is code that members of the CEDAR lab completed that you can look at if you get stuck.
- Python: This folder/directory holds all of the Python code for the labs. This also includes base code and completed code.
Opening in Your Editor
- Open the controller base code by:
- Go to the files you downloaded
- Double-click on the JavaScript or Python folder.
- Right-click on appropriate base file (JavaScript) or controller_base (Python)
- Select Open with Visual Code, Open with Notepad++, or Open with Notepad
- Highlight all of the text and copy it (right-click and copy or ctrl+c)
- If you are using JavaScript/Blocks, in the editor, select the JavaScript button in the center-top of the page. If you are using Python, simply go to your editor.
- Delete all of the existing code in the editor
- Paste your code into the editor
- If you are using Blocks, to get back to blocks, you can select the Blocks button in the center-top of the page.
- For JavaScript/Blocks, you will use the Micro::Bit online editor: MakeCode. Here, you can switch back and forth between JavaScript and Blocks by clicking on the button/slider in the top center of the screen.
- For Python, you can use Mu (click here to see Mu) or the online editor (click here to get to the online editor).