diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-25 14:51:05 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-25 14:51:05 +0300 |
commit | 2ecf1e1d84bcec2fa77318a7e9a3ddf506a921f6 (patch) | |
tree | 3dd1fa19dc1c91952782daba69bfbc556a609d9a | |
parent | 95dbb800dc9b819d5a695deac05d7a24f5ecc752 (diff) |
gamma.py: show a test pattern
-rw-r--r-- | py/gamma.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/gamma.py b/py/gamma.py index 69722ce..c8da18f 100644 --- a/py/gamma.py +++ b/py/gamma.py @@ -12,6 +12,12 @@ card = pykms.Card() conn = card.get_first_connected_connector() mode = conn.get_default_mode() crtc = conn.get_current_crtc() +mode = conn.get_default_mode() + +fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); +pykms.draw_test_pattern(fb); + +crtc.set_mode(conn, fb, mode) arr = bytearray(256*2*4) view = memoryview(arr).cast("H") |