From 2d198e24d14920e4e1c63104ae65c29b1df99577 Mon Sep 17 00:00:00 2001 From: "Trent M. Wyatt" Date: Sat, 20 Jan 2024 04:12:43 -0600 Subject: [PATCH 1/2] Update README.md --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9f19768..7eaeaae 100644 --- a/README.md +++ b/README.md @@ -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`. - ___ ## Using Bang in your Arduino sketches From 0f3c0135851ffa51caa45965e7e19694a005c4c7 Mon Sep 17 00:00:00 2001 From: "Trent M. Wyatt" Date: Sat, 20 Jan 2024 04:18:53 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7eaeaae..8275271 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ void setup() { Serial.begin(115200); command_serial.begin(38400); - bang.serial("\nexecutable lines should start with a bang ! character as in:"); + bang.serial("executable lines should start with a bang ! character as in:"); bang.serial(" !echo hello, arduino!"); bang.serial("macro lines should start with an @ character as in:");