You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/getting_code_on_the_robot.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,11 @@ title: Getting Code on the Robot
6
6
# Getting Code on the Robot
7
7
8
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 or ext2/3/4.
9
+
You will need to put your code on a USB drive which will need to be formatted with either FAT32, exFAT or ext2/3/4.
11
10
Upon plugging in the drive or starting up, the robot will run the `robot.py` file found in the root of the drive.
12
11
13
-
To re-run your program, simply remove the USB stick from the robot and plug it
14
-
back in again and it will restart automatically.
12
+
To re-run your program, simply remove the USB stick from the robot and plug it back in again and it will restart automatically.
15
13
16
-
<divclass="info"markdown="1">
17
-
The `robot.zip` format previously used is no longer supported.
18
-
Code files must be directly in the root of the USB drive to be run.
19
-
</div>
20
14
21
15
## Windows
22
16
@@ -26,6 +20,7 @@ back in again and it will restart automatically.
26
20
4. Open your USB drive in File Explorer
27
21
5. Right-click in the directory and click "Paste"
28
22
23
+
29
24
## macOS
30
25
31
26
1. Open your code in Finder
@@ -34,7 +29,8 @@ back in again and it will restart automatically.
34
29
4. Open your USB drive in Finder
35
30
5. Right-click in the directory and click "Paste N items"
36
31
32
+
37
33
## Robot Logs
38
34
39
-
When your program runs on the robot, the output of `print(...)` statements and
40
-
any errors which occur are written to a log file on the USB stick as `log.txt`.
35
+
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`.
36
+
These logs are also available to view live on the [web interface]({{ site.baseurl }}/kit/brain_board/wifi).
0 commit comments