From 75d4d0f3dff0e388f3df72ffaf551246bc4d3b78 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 10 Dec 2017 16:12:12 +0100 Subject: Prettified the python side of things a bit --- fw/test.py | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/fw/test.py b/fw/test.py index dab5482..a552816 100755 --- a/fw/test.py +++ b/fw/test.py @@ -50,6 +50,28 @@ def unstuff(data): def receive_frame(ser): return unstuff(read_frame(ser)) +def send_framebuffer(ser, mac, frame): + formatted = format_packet(frame) + mac_packet = struct.pack('