aboutsummaryrefslogtreecommitdiff
path: root/host/matelight/host.py
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2013-12-29 02:52:28 +0100
committerjaseg <jaseg@jaseg.net>2013-12-29 02:52:28 +0100
commit7e2c51dc2645c4dffe7cc33e8533f0667b8775a6 (patch)
treefb1e7da9904d60e141d68bc8964f43fd5f46f486 /host/matelight/host.py
parenta95e0305aeaffadf071e963863c102b30b76993a (diff)
downloadmatelight-7e2c51dc2645c4dffe7cc33e8533f0667b8775a6.tar.gz
matelight-7e2c51dc2645c4dffe7cc33e8533f0667b8775a6.tar.bz2
matelight-7e2c51dc2645c4dffe7cc33e8533f0667b8775a6.zip
Added basic text rendering & TCP server
Diffstat (limited to 'host/matelight/host.py')
-rw-r--r--host/matelight/host.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/matelight/host.py b/host/matelight/host.py
index 394c299..4fa8578 100644
--- a/host/matelight/host.py
+++ b/host/matelight/host.py
@@ -9,7 +9,7 @@ dev = usb.core.find(idVendor=0x1cbe, idProduct=0x0003)
def sendframe(framedata):
# not isinstance(framedata, np.array) or
if framedata.shape != (DISPLAY_HEIGHT, DISPLAY_WIDTH, 3) or framedata.dtype != np.uint8:
- raise ValueError('framedata must be a ({}, {}, 3)-numpy array of int8s. Got a {}-numpy array of {}'.format(DISPLAY_WIDTH, DISPLAY_HEIGHT, framedata.shape, framedata.dtype))
+ raise ValueError('framedata must be a ({}, {}, 3)-numpy array of uint8s. Got a {}-numpy array of {}'.format(DISPLAY_HEIGHT, DISPLAY_WIDTH, framedata.shape, framedata.dtype))
for cy, cx in itertools.product(range(CRATES_Y), range(CRATES_X)):
cratedata = framedata[cy*CRATE_HEIGHT:(cy+1)*CRATE_HEIGHT, cx*CRATE_WIDTH:(cx+1)*CRATE_WIDTH]