import time
import serial
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate=115200,
parity=serial.PARITY_ODD,
stopbits=serial.STOPBITS_TWO,
bytesize=serial.SEVENBITS
)
ser.isOpen()
print ('Enter your commands below.\r\nInsert "exit" to leave the application.')
input=1
while 1 :
input = raw_input(">> ")
if input == 'exit':
ser.close()
exit()
else:
ser.write(input + '\r\n')
out = ''
time.sleep(1)
while ser.inWaiting() > 0:
out += ser.read(1)
if out != '':
print( ">>" + out)
~
root@rb-imx6ul:~# python3 diesel.py
Traceback (most recent call last):
File "diesel.py", line 2, in <module>
import serial
File "/home/root/serial.py", line 4, in <module>
ser = serial.Serial(
AttributeError: module 'serial' has no attribute 'Serial'
This set is very cute christmas outfit baby for pictures only. The material is too thin and scratchy to be comfortable in a baby unless it’s pretty warm out. It runs a tad large for my baby. The thing that I disliked the most is the bow had mildew on it. Not sure where these items are kept in the warehouse but that’s not acceptable. I’m throwing the bow out and only using the outfit for pictures.