AlphaLEDSign

From BrainSilo
Jump to: navigation, search
 References: http://wls.wwco.com/ledsigns/alpha/AlphaLinux.html
 stty settings:
 stty 9600 -opost -ocrnl -onlcr cs7 parenb -parodd 
 Serial Port Settings:
 ser = serial.Serial(0)
 ser.baudrate = 9600
 ser.parity = serial.PARITY_EVEN
 ser.bytesize = serial.SEVENBITS
 ser.stopbits = serial.STOPBITS_ONE
 ser.timeout=5
 ser.open()
 ser.write("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0")
 message = "It Worked!";
 ser.write("\001" + "Z" + "00" + "\002" + "AA" + "\x1B" + " b" + $message + "\004")
 ser.close()