summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95dbb80)
raw | patch | inline | side by side (parent: 95dbb80)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Wed, 25 May 2016 11:51:05 +0000 (14:51 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Wed, 25 May 2016 11:51:05 +0000 (14:51 +0300) |
py/gamma.py | patch | blob | history |
diff --git a/py/gamma.py b/py/gamma.py
index 69722ce8c9057dee7b294bf47e72a4088689cd36..c8da18fcb1af665a693349b493245e30529c4467 100644 (file)
--- a/py/gamma.py
+++ b/py/gamma.py
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")