aboutsummaryrefslogtreecommitdiff
path: root/host/matelight.py
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-03-07 02:53:21 +0100
committerjaseg <jaseg@jaseg.net>2014-03-07 02:53:21 +0100
commitd8fba4ec52a8c62ebf31ce9f9ead41b175b92b8e (patch)
tree3144ee001ecc7677682592ad676e2d517d436b3e /host/matelight.py
parent2cff1d4dde5120d437cbe22a6269cfba93486c62 (diff)
downloadmatelight-d8fba4ec52a8c62ebf31ce9f9ead41b175b92b8e.tar.gz
matelight-d8fba4ec52a8c62ebf31ce9f9ead41b175b92b8e.tar.bz2
matelight-d8fba4ec52a8c62ebf31ce9f9ead41b175b92b8e.zip
udp and tcp subloops, default texts still missing
Diffstat (limited to 'host/matelight.py')
-rw-r--r--host/matelight.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/matelight.py b/host/matelight.py
index 5b869e6..6d0f5bf 100644
--- a/host/matelight.py
+++ b/host/matelight.py
@@ -36,8 +36,9 @@ def sendframe(framedata):
channel is ignored.
"""
# just use the first Mate Light available
+ w,h,c = framedata.shape
buf = framedata.ctypes.data_as(POINTER(c_uint8))
- ml.matelight_send_frame(matelights, buf, c_size_t(CRATES_X), c_size_t(CRATES_Y), c_float(BRIGHTNESS), True)
+ ml.matelight_send_frame(matelights, buf, c_size_t(CRATES_X), c_size_t(CRATES_Y), c_float(BRIGHTNESS), c == 4)
if __name__ == '__main__':
#foo = np.array([[(0, 0, 0, 0)]*DISPLAY_WIDTH]*DISPLAY_HEIGHT)