python - Pyserial not running correctly? -


i'm trying use pyserial running issues. code in larger code follows

import serial ser = serial.serial('/dev/ttyama0', 300) ser.write(string) ser.close() 

but running script not getting past ser = serial.serial('/dev/ttyama0', 300)

thanks all


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -