diff options
author | jaseg <jaseg@jaseg.net> | 2014-03-07 02:53:21 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2014-03-07 02:53:21 +0100 |
commit | d8fba4ec52a8c62ebf31ce9f9ead41b175b92b8e (patch) | |
tree | 3144ee001ecc7677682592ad676e2d517d436b3e /host/matelight.py | |
parent | 2cff1d4dde5120d437cbe22a6269cfba93486c62 (diff) | |
download | matelight-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.py | 3 |
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) |