Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2011-07-02 03:37:02 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2011-07-02 03:37:02 (GMT)
commit9f7b12a7825b40eb242009b575952c61fbc19dcd (patch)
tree9b1ec22804370865d182c997d1f65c72fce88a09
parente96a3ca0aadc3d17f0a3e57dbdd92b752355a3ee (diff)
cooment on udev rulesHEADmaster
-rw-r--r--plugins/arduino/arduino.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/plugins/arduino/arduino.py b/plugins/arduino/arduino.py
index 01e0595..747d2b0 100644
--- a/plugins/arduino/arduino.py
+++ b/plugins/arduino/arduino.py
@@ -39,7 +39,22 @@ class Arduino(Plugin):
# plugin class
def __init__(self, parent):
self._parent = parent
- self._status = False
+ self._status = False
+
+ """
+ The following code will initialize a USB-arduino connection . Please note that
+ in order to make this initialization function work, it is necessary to
+ set the permission for the ttyUSB device to 0666. You can do this by
+ adding a rule to /etc/udev/rules.d
+
+ As root (using sudo or su), copy the following text into a new file in
+ /etc/udev/rules.d/94-ttyUSB-rules
+
+ KERNEL=="ttyUSB[0-9]",MODE="0666"
+
+ You only have to do this once.
+
+ """
def setup(self): # set up Arduino-specific blocks