... | ... | @@ -73,29 +73,18 @@ def capture_data(): |
|
|
radio.send(str(x_Accel) + ',' + str(y_Accel) + ',' + str(z_Accel))
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Step 3: Download The Files
|
|
|
* Download (click on) the following file to get started: [05_FitTrack.zip](/uploads/32b7fbd0dbb0081998bf601b80d8110d/05_FitTrack.zip)
|
|
|
|
|
|
* Unzip FitTrack.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/directories in FitTrackLab:
|
|
|
* **HexFiles**: This folder/directory holds all of the .hex files, or files that are ready to be run on a Micro::Bit.
|
|
|
* **JavaScript**: This folder/directory 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.
|
|
|
|
|
|
![files_new](/uploads/db7d5badc4c093fab35c294881ace7e4/files_new.PNG)
|
|
|
|
|
|
## Step 4: Open your editor.
|
|
|
* For JavaScript/Blocks, you will use the Micro::Bit online editor: [MakeCode](https://makecode.microbit.org/). Here, you can switch back and forth between JavaScript and Blocks by clicking on the button/slider in the top center of the screen.
|
|
|
|
|
|
![blocks](/uploads/7061a5064100caa0790c714bdb1182c1/blocks.PNG)
|
|
|
* Unzip BeaconLab.zip to your desired folder. For **instructions** on how to unzip click [here](how-to-download-and-open)
|
|
|
|
|
|
* For Python, you can use Mu ([click here to see Mu](https://codewith.mu/)) or the online editor ([click here to get to the online editor](http://python.microbit.org/v/1)).
|
|
|
## Step 4: Open your editor
|
|
|
* This base code is also available in the directory that you downloaded as well as this repository. If you don't remember how to open code in your editor, see the **instructions** [here](how-to-download-and-open).
|
|
|
|
|
|
* Python must be downloaded on your computer to run serial_reader.py. You can still complete this lab without serial_reader.py with a chrome extension [here](https://chrome.google.com/webstore/detail/serial-monitor/ohncdkkhephpakbbecnkclhjkmbjnmlo?hl=en).
|
|
|
* **NOTE:** Python **must be downloaded** on your computer to run *serial_reader.py*. You can still complete this lab without serial_reader.py with a chrome extension [here](https://chrome.google.com/webstore/detail/serial-monitor/ohncdkkhephpakbbecnkclhjkmbjnmlo?hl=en).
|
|
|
|
|
|
|
|
|
## Step 5: Flash the base code.
|
|
|
## Step 5: Flash the base code
|
|
|
If you don't remember how to flash code to your Micro::Bit, see the instructions [here](how-to-flash).
|
|
|
|
|
|
## Step 6: Programming!
|
... | ... | |