From c61ed1266895d21ef033cc82b3197c1be14c5b72 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 9 Mar 2014 01:34:33 +0100 Subject: Removed test code from matelight.py --- host/matelight.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/host/matelight.py b/host/matelight.py index 59b6373..d4b4f2d 100644 --- a/host/matelight.py +++ b/host/matelight.py @@ -40,21 +40,3 @@ def sendframe(framedata): 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), c == 4) -if __name__ == '__main__': - #foo = np.array([[(0, 0, 0, 0)]*DISPLAY_WIDTH]*DISPLAY_HEIGHT) - #bar = np.array([[(255, 0, 255, 0)]*DISPLAY_WIDTH]*DISPLAY_HEIGHT) - x,y = 0,0 - while True: - x += 1 - if x == DISPLAY_WIDTH: - x = 0 - y += 1 - if y == DISPLAY_HEIGHT: - y = 0 - foo = np.array([[(64, 0, 0, 255)]*DISPLAY_WIDTH]*DISPLAY_HEIGHT, dtype=np.uint8) - foo[y,x,:] = (0,64,0,255) - #from terminal import printframe - sendframe(foo) - #printframe(foo) - #sendframe(bar) - time.sleep(0.1) -- cgit