From 1f187d566e85985e92f547c75763a494e6c004d0 Mon Sep 17 00:00:00 2001 From: Alexander Richter Date: Mon, 12 Feb 2024 17:53:48 +0100 Subject: [PATCH] bugfix and small readme tweak --- README.md | 6 +++--- arduino-connector.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 28dff38..786be00 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ It also supports Digital LEDs such as WS2812 or PL9823. This way you can have as | Currently the Software Supports: | Arduino Mega | Ardunio Micro | Ardunio Uno | | --------------------------------------------- | ------------ | ------------- | ----------- | | Analog Inputs | Up to 16 | Up to 12 | Up to 6 | -| Digital Inputs | Up to 54 | Up to 20 | Up to 14 | -| Digital Outputs | Up to 54 | Up to 20 | Up to 14 | +| Digital Inputs | Up to 52 | Up to 20 | Up to 12 | +| Digital Outputs | Up to 52 | Up to 20 | Up to 12 | | PWM Outputs | Up to 15 | Up to 7 | Up to 6 | | Digital RGB LEDs like WS2812 or PL9823 | ~ 1000 | ~ 1000 | ~ 1000 | | latching Potentiometers / Selector Switches | Up to 16 | Up to 12 | Up to 6 | @@ -65,7 +65,7 @@ Just return ```E0:0``` to it. You can now communicate with the Arduino. Further 3. install python-serial ```sudo apt-get install python-serial``` 4. edit arduino.py to match your arduino settings. If you're running 2.8 change - #!/usr/bin/python3.9 in the first line of arduino.py to #!/usr/bin/python2.7. + #!/usr/bin/env python3 in the first line of arduino.py to #!/usr/bin/python2.7. 5. also check if the Serial adress is correct for your Arduino. I found it easyest to run ```sudo dmesg | grep tty``` in Terminal while plugging and unplugging the arduino a couple of times and whatch which entry is changing. 6. make arduino.py executable with chmod +x, delete the suffix .py and copy diff --git a/arduino-connector.py b/arduino-connector.py index e80d4c2..b73e88d 100644 --- a/arduino-connector.py +++ b/arduino-connector.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3.9 +#!/usr/bin/env python3 import serial, time, hal # LinuxCNC_ArduinoConnector # By Alexander Richter, info@theartoftinkering.com 2022