Browse files

Add inCode Doku

  • Loading branch information...
1 parent 7ea9637 commit 1305c8a07d6bd823727efb96b4df14d3286939d3 @uescher uescher committed Jan 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 util/eltako.py
View
4 util/eltako.py
@@ -1,6 +1,10 @@
import serial
import sys
+#Parameter sind: Gerät, Baudrate, Letztes Byte der TransmitterID, Befehl (muss 0 oder 1 sein)
+#Beispielaufruf: python ./eltako.py "/dev/ttyUSB1" 9600 103 2
+
+
ser= serial.Serial(sys.argv[1],sys.argv[2],timeout=1)
toSend = [0xa5,0x5a,0x0b,0x05,int(sys.argv[4])*32+80,0x0,0x0,0x0,0x0,0x0,0x0,int(sys.argv[3]),0x10]
checksum = 0

0 comments on commit 1305c8a

Please sign in to comment.