aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <jaseg@jaseg.net>2014-03-09 01:34:33 +0100
committerjaseg <jaseg@jaseg.net>2014-03-09 01:34:33 +0100
commitc61ed1266895d21ef033cc82b3197c1be14c5b72 (patch)
treebe496204c4b0a40357e240d4ba566f79f7b8193f
parent592fed02624f244af1b0a4e909915d49a6bb9675 (diff)
downloadmatelight-c61ed1266895d21ef033cc82b3197c1be14c5b72.tar.gz
matelight-c61ed1266895d21ef033cc82b3197c1be14c5b72.tar.bz2
matelight-c61ed1266895d21ef033cc82b3197c1be14c5b72.zip
Removed test code from matelight.py
-rw-r--r--host/matelight.py18
1 files changed, 0 insertions, 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)