From d8fba4ec52a8c62ebf31ce9f9ead41b175b92b8e Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 7 Mar 2014 02:53:21 +0100 Subject: udp and tcp subloops, default texts still missing --- host/matelight.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/matelight.py') 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) -- cgit