|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: Getting Code on the Robot |
| 4 | +--- |
| 5 | + |
| 6 | +# Getting Code on the Robot |
| 7 | + |
| 8 | +Getting your code on to the robot is quite simple. |
| 9 | +You will need to put your code on a USB drive |
| 10 | +Which will need to be formatted with either FAT32, exFAT, NTFS or ext2/3/4. |
| 11 | +Upon plugging in the drive or starting up, the robot will run the `robot.py` file found in the `robot.zip` in the root of the drive. |
| 12 | + |
| 13 | +## Windows |
| 14 | + |
| 15 | +1. Open your code in File Explorer |
| 16 | +2. Select all of your code files (<kbd>Ctrl</kbd><kbd>A</kbd> to select all files) |
| 17 | +3. Right-click the files |
| 18 | +4. Click Compress to Zip file |
| 19 | +5. Name the newly created file `robot` (or `robot.zip` if you have file extentions shown) |
| 20 | + |
| 21 | +<img src="{{ site.baseurl }}/images/content/kit/zip_win10.jpg" alt="Screenshot for Windows 10" class="column half" /> |
| 22 | +<img src="{{ site.baseurl }}/images/content/kit/zip_win11.png" alt="Screenshot for Windows 11" class="column half" /> |
| 23 | + |
| 24 | +If you are on Windows 10 or older, you will need to use Send to → Compressed (zipped) folder. |
| 25 | + |
| 26 | +## macOS |
| 27 | + |
| 28 | +1. Open your code in Finder |
| 29 | +2. Select all of your code files (<kbd>⌘</kbd><kbd>A</kbd> to select all files) |
| 30 | +3. Right-click (or Control-click) the files and click Compress |
| 31 | +4. Name the newly created file `robot.zip` |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +To re-run your program, simply remove the USB stick and plug it back in again and it will restart automatically. |
| 36 | + |
| 37 | +## Robot Logs |
| 38 | + |
| 39 | +When your program runs on the robot, the output of `print(...)` calls and any |
| 40 | +errors which occur are written to a log file on the USB stick as `log.txt`. |
0 commit comments