Skip to content

Commit 4e2073e

Browse files
committed
Add "getting code on the robot" tutorial
1 parent bd2a985 commit 4e2073e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Getting code on the robot
2+
3+
Getting your code on to the robot is quite simple. You will need to put your code on a USB drive which will need to be formatted with either FAT32, exFAT or ext 2-4. Upon plugging in the drive or starting up, the robot will run the `robot.py` file found in the root of the drive.
4+
5+
To re-run your program, simply remove the USB stick from the robot and plug it back in again and it will restart automatically.
6+
7+
## Windows
8+
9+
1. Open your code in File Explorer
10+
2. Select all of your code files (++ctrl+a++ to select all files)
11+
3. Right-click the files and click "Copy"
12+
4. Open your USB drive in File Explorer
13+
5. Right-click in the directory and click "Paste"
14+
15+
## macOS
16+
17+
1. Open your code in Finder
18+
2. Select all of your code files (++cmd+a++ to select all files)
19+
3. Right-click (or Control-click) the files and click "Copy"
20+
4. Open your USB drive in Finder
21+
5. Right-click in the directory and click "Paste N items"
22+
23+
## Robot logs
24+
25+
When your program runs on the robot, the output of `print(...)` statements and any errors which occur are written to a log file on the USB stick as `log.txt`.

0 commit comments

Comments
 (0)