summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/52-tv.rules1
-rwxr-xr-xtv2
2 files changed, 2 insertions, 1 deletions
diff --git a/etc/52-tv.rules b/etc/52-tv.rules
new file mode 100644
index 0000000..c3104e6
--- /dev/null
+++ b/etc/52-tv.rules
@@ -0,0 +1 @@
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", KERNEL=="ttyUSB*", SYMLINK+="tv"
diff --git a/tv b/tv
index 912a64b..bdf5871 100755
--- a/tv
+++ b/tv
@@ -4,7 +4,7 @@ import sys
import LgTV
-tv = LgTV.LgTV("/dev/ttyUSB0")
+tv = LgTV.LgTV("/dev/tv")
#tv.setValue(01, "xb", 0x00)
#print tv.getValue(01, "xb")
#tv.setValue(01, "xb", 0x80)