Pyserial again

luca72 lucaberto at libero.it
Tue Mar 7 15:06:17 CET 2006


def OnButton1Button(self, event):

           ser = serial.Serial(0)
>         ser.baudrate = 9600
>         ser.parity = serial.PARITY_ODD
>         ser.stopbits = serial.STOPBITS_TWO
>         ser.bytesize =serial.EIGHTBITS
>         ser.setRTS(level = 0)
>         ser.setDTR(level = 0)
>         ser.timeout = 1

>         ser.readline() 

no code before

Regards

Luca




More information about the Python-list mailing list