diff --git a/Quartus/UART_screen/s.py b/Quartus/UART_screen/s.py new file mode 100644 index 0000000..a7615a8 --- /dev/null +++ b/Quartus/UART_screen/s.py @@ -0,0 +1,12 @@ +import serial +try: + ser = serial.Serial('COM4', 9600,timeout=None) +except: + print("Serial port not found") + exit() + +ser.write("p0.pic=0".encode("gb2312")) +ser.write(b'\xFF\xFF\xFF') + +ser.write("g0.txt=\"喜迎二十大,永远跟党走,奋进新征程.\"".encode("gb2312")) +ser.write(b'\xFF\xFF\xFF') \ No newline at end of file diff --git a/Quartus/UART_screen/screen.HMI b/Quartus/UART_screen/screen.HMI index 80e015f..cb6bc92 100644 Binary files a/Quartus/UART_screen/screen.HMI and b/Quartus/UART_screen/screen.HMI differ