... | ... | @@ -86,13 +86,7 @@ You can check to make sure that you have the library by searching for the librar |
|
|
5. When the command "stop" is received over the radio, stop the motobit
|
|
|
6. When the command "left" is received over the radio, drive the mototbit left
|
|
|
7. When the command "right" is received over the radio, drive the mototbit right
|
|
|
4. Generate your robot .hex file. From your editor, click on the "Download" button in the bottom right hand corner. This will download your .hex file. You can find it in the Downloads folder on your computer.
|
|
|
|
|
|
![download](/uploads/c3c3a26fb266867fc4cbe74a08ab952e/download.PNG)
|
|
|
|
|
|
If you are using Mu (Python editor), you simply need to press the "flash" button. In other words, if you are working with Python, you don't have to generate a .hex file, you just need to press the "flash" button.
|
|
|
|
|
|
![flash_py](/uploads/f88092bbd58733b96896c29481a875b1/flash_py.PNG)
|
|
|
4. Generate your robot .hex file and flash your robot Micro::Bit. If you don't remember how to flash code to your Micro::Bit, see the instructions [here](how-to-flash).
|
|
|
|
|
|
5. Open the controller base code by:
|
|
|
1. Go to the files you downloaded from above
|
... | ... | @@ -108,15 +102,7 @@ You can check to make sure that you have the library by searching for the librar |
|
|
1. When button a and b are pressed, if the radio channel has not already been set, set it. if the radio channel has already been set, send a "forward" command over the radio
|
|
|
2. When button a is pressed, if the radio group has not been set, decrement the radio group by 1. if the radio group has been set, send a "left" command over the radio
|
|
|
3. When button b is pressed, if the radio group has not been set, increment the radio group by 1. if the radio group has been set, send a "right" command over the radio
|
|
|
7. Generate your controller .hex file. From your editor, click on the "Download" button in the bottom right hand corner. This will download your .hex file. You can find it in the Downloads folder on your computer.
|
|
|
|
|
|
![download](/uploads/c3c3a26fb266867fc4cbe74a08ab952e/download.PNG)
|
|
|
|
|
|
If you are using Mu (Python editor), you simply need to press the "flash" button. In other words, if you are working with Python, you don't have to generate a .hex file, you just need to press the "flash" button.
|
|
|
|
|
|
![flash_py](/uploads/f88092bbd58733b96896c29481a875b1/flash_py.PNG)
|
|
|
|
|
|
5. If you don't remember how to flash code to your Micro::Bit, see the instructions [here](how-to-flash).
|
|
|
7. Generate your controller .hex file and flash your controller Micro::Bit. If you don't remember how to flash code to your Micro::Bit, see the instructions [here](how-to-flash).
|
|
|
|
|
|
<details>
|
|
|
<summary>
|
... | ... | |