diff options
author | jaseg <jaseg@jaseg.net> | 2013-12-29 22:35:31 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2013-12-29 22:35:31 +0100 |
commit | 493863fcc0d0bc52a27631eeb76a85446f3e6760 (patch) | |
tree | d3193c448c12723ad7b8a11cf3e3eda3d443579d /host/matelight/scroll-test.py | |
parent | 7e2c51dc2645c4dffe7cc33e8533f0667b8775a6 (diff) | |
download | matelight-493863fcc0d0bc52a27631eeb76a85446f3e6760.tar.gz matelight-493863fcc0d0bc52a27631eeb76a85446f3e6760.tar.bz2 matelight-493863fcc0d0bc52a27631eeb76a85446f3e6760.zip |
More advanced network IF with direct buffer support
Diffstat (limited to 'host/matelight/scroll-test.py')
-rwxr-xr-x | host/matelight/scroll-test.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/host/matelight/scroll-test.py b/host/matelight/scroll-test.py new file mode 100755 index 0000000..f962416 --- /dev/null +++ b/host/matelight/scroll-test.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +import host +import numpy as np +from config import * +import time +import renderers + +while True: + renderer = renderers.TextRenderer('\x1B[91mThe \x1B[92;105mquick\x1B[0m brown \x1B[96;5mfox jumps over\x1B[0m the lazy dog.') + for frame, delay in renderer.frames(): + #print(list(frame.flatten())) + host.sendframe(np.swapaxes(frame, 0, 1)) + #time.sleep(delay) + |