-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I guess the comment mark before
#self.ser = serial.Serial(COM,baudrate=Brate,bytesize=Bsize,stopbits=StopB)
was unintended?
However it works only if removing that comment mark.
class PyDMX:
def __init__(self,COM='COM8',Cnumber=512,Brate=250000,Bsize=8,StopB=2,use_prev_data=False,preserve_data_name="preserved_data.txt"):
#start serial
self.channel_num = Cnumber
#self.ser = serial.Serial(COM,baudrate=Brate,bytesize=Bsize,stopbits=StopB)
self.data = np.zeros([self.channel_num+1],dtype='uint8')
self.data[0] = 0 # StartCodeReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels