Update README

GameStickMan
CalisJI 2024-08-23 10:11:12 +07:00
parent 8933449eee
commit b4eb52a354
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ header = struct.pack('<II', num_rows, num_cols) # <II cho hai số nguyên khô
data_to_send = header + data_bytes
# Mở cổng serial
ser = serial.Serial('/dev/ttyUSB0', 115200) # Thay 'COM3' bằng cổng serial của bạn
print(data)
# Gửi dữ liệu
ser.write(data_to_send)