Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ripred authored Jan 20, 2024
1 parent 870a88f commit 2d198e2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,28 @@ In order to allow your Arduino to execute all programs that are requested, as we

#### For Windows Users:
```
runas /user:Administrator "cmd /c python3 arduino_exec.py --port COM3 2>&1"
runas /user:Administrator "cmd /c python3 arduino_exec.py -p COM3"
```

Note that if you don't plan on executing any commands that require the extra administrative permissons you can run the program directly just using Python alone without including the `runas /user:Administrator` prefix. Some of the sketches in the public gallery require administrative permissions, specifically those that allow the Arduino to shut down, reboot, or put the host machine to sleep:

```
python3 arduino_exec.py --port COM3 2>&1
python3 arduino_exec.py -p COM3
```

#### For Mac and Linux Users:
Replace the device path '/dev/cu.usbserial-A4016Z9Q' with the path to your Arduino port.
Replace the device path '/dev/cu.usbserial-00100' with the path to your Arduino port.

```
sudo 2>&1 python3 arduino_exec.py --port /dev/cu.usbserial-A4016Z9Q
sudo python3 arduino_exec.py -p /dev/cu.usbserial-00100
```

Note that if you don't plan on executing any commands that require the extra root permissons you can run the program directly just using Python alone without including the `sudo` prefix. Some of the sketches in the public gallery require root permissions, specifically those that allow the Arduino to shut down, reboot, or put the host machine to sleep. Replace the device path '/dev/cu.usbserial-A4016Z9Q' with the path to your Arduino port.
Note that if you don't plan on executing any commands that require the extra root permissons you can run the program directly just using Python alone without including the `sudo` prefix. Some of the sketches in the public gallery require root permissions, specifically those that allow the Arduino to shut down, reboot, or put the host machine to sleep. Replace the device path '/dev/cu.usbserial-00100' with the path to your Arduino port.

```
python3 2>&1 arduino_exec.py --port /dev/cu.usbserial-A4016Z9Q
python3 arduino_exec.py -p /dev/cu.usbserial-00100
```

The `2>&1` term will ensure that all output is captured and returned to your Arduino including any output directed to `stderr` in addition to the normal output sent to `stdout`.

<!-- &#160; -->
___
## Using Bang in your Arduino sketches
Expand Down

0 comments on commit 2d198e2

Please sign in to comment.