timeout-game
This commit is contained in:
parent
950859c5ef
commit
86a96593fb
@ -50,7 +50,7 @@ DMXDATA = np.zeros([513], dtype='uint8')
|
||||
DMXDATA[0] = 0 # 0 = Lighting Control Data
|
||||
|
||||
# DMX Reset [µs]/float
|
||||
DMXRST = 1000000.0 # typical 88µs
|
||||
DMXRST = 88.0 # typical 88µs
|
||||
|
||||
# DMX Break [µs]/float
|
||||
DMXBRK = 8.0 # 8µs (min) to 1s (max)
|
||||
@ -111,7 +111,8 @@ def sendDMX(data):
|
||||
DMXSER.send_break(DMXRST / 1000000.0)
|
||||
|
||||
# break-time
|
||||
time.sleep(DMXBRK / 1000000.0)
|
||||
#-----------------------------------------------------------------------time.sleep(DMXBRK / 1000000.0)
|
||||
time.sleep(0.1)
|
||||
|
||||
# send complete data array
|
||||
DMXSER.write(bytearray(DMXDATA))
|
||||
@ -123,7 +124,8 @@ def sendDMX(data):
|
||||
# Sleep between TX packages, use time to get RDM packages
|
||||
DMXRDM = ""
|
||||
DMXRDMFLAG = False
|
||||
DMXSER.timeout(DMXSLP / 1000.0) # between 0 - 1 sec
|
||||
DMXSER.timeout(5.0)
|
||||
#-----------------------------------------------------------------------DMXSER.timeout(DMXSLP / 1000.0) # between 0 - 1 sec
|
||||
DMXRDM = DMXSER.readlines()
|
||||
DMXRDMFLAG = True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user