Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

this is just deceleration of class there is no command to write data on USB port.

there is just two line code to do the same

ser = serial.Serial('/dev/ttyS1', 19200, timeout=1)
ser.write('5')

Thank you viewers, I found the mistake and corrected it ....

this is just deceleration of class there is no command to write data on USB port.

there is just two line code to do the same

ser = serial.Serial('/dev/ttyS1', 19200, timeout=1)
ser.write('5')